• 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/domoticz/S99domoticz
Fabrice FontaineFabrice Fontaine committed cae3a44b05b19 May 2016
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
#!/bin/sh
2
​
3
NAME=domoticz
4
PIDFILE=/var/run/$NAME.pid
5
DAEMON=/opt/domoticz/$NAME
6
DAEMON_ARGS="-daemon -www 8080 -sslwww 443"
7
​
8
start() {
9
    printf "Starting $NAME: "
10
    start-stop-daemon -S -q -m -b -p $PIDFILE --exec $DAEMON -- $DAEMON_ARGS
11
    [ $? = 0 ] && echo "OK" || echo "FAIL"
12
}
13
stop() {
14
    printf "Stopping $NAME: "
15
    start-stop-daemon -K -q -p $PIDFILE
16
    [ $? = 0 ] && echo "OK" || echo "FAIL"
17
}
18
restart() {
19
    stop
20
    start
21
}
22
​
23
case "$1" in
24
  start)
25
    start
26
    ;;
27
  stop)
28
    stop
29
    ;;
30
  restart|reload)
31
    restart
32
    ;;
33
  *)
34
    echo "Usage: $0 {start|stop|restart}"
35
    exit 1
36
esac
37
​
38
exit $?
  • 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.