• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/mpd/S95mpd
Gustavo ZacariasGustavo Zacarias committed 1753c3bf2aa14 Jan 2014
Raw file
Source viewDiff to previous
 
1
#!/bin/sh
2
​
3
# Sanity checks
4
test -f /usr/bin/mpd || exit 0
5
test -f /etc/mpd.conf || exit 0
6
​
7
start() {
8
    echo -n "Starting mpd: "
9
    start-stop-daemon --start --quiet --background --exec /usr/bin/mpd \
10
        && echo "OK" || echo "FAIL"
11
}
12
​
13
stop() {
14
    echo -n "Stopping mpd: "
15
    start-stop-daemon --stop --quiet --pidfile /var/run/mpd.pid \
16
        && echo "OK" || echo "FAIL"
17
}
18
​
19
case "$1" in
20
    start)
21
        start
22
        ;;
23
    stop)
24
        stop
25
        ;;
26
    restart|reload)
27
        stop
28
        sleep 1
29
        start
30
        ;;
31
    *)
32
        echo "Usage: $0 {start|stop|restart}"
33
        exit 1
34
esac
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.