main
4.0.0
Rev | Line | |
---|
[11f7a07] | 1 | #!/bin/sh -e |
---|
| 2 | ### BEGIN INIT INFO |
---|
| 3 | # Provides: ogagent |
---|
| 4 | # Required-Start: $local_fs $remote_fs $network $syslog $named |
---|
| 5 | # Required-Stop: $local_fs $remote_fs $network $syslog $named |
---|
| 6 | # Default-Start: 2 3 4 5 |
---|
| 7 | # Default-Stop: 0 1 6 |
---|
[9bfb4ee] | 8 | # Short-Description: OpenGnsys Agent Service |
---|
[11f7a07] | 9 | ### END INIT INFO |
---|
| 10 | # |
---|
| 11 | |
---|
| 12 | # . /lib/lsb/init-functions |
---|
| 13 | |
---|
| 14 | case "$1" in |
---|
| 15 | start|stop|restart) |
---|
| 16 | /usr/bin/ogagent $1 |
---|
| 17 | ;; |
---|
| 18 | force-reload) |
---|
| 19 | /usr/bin/ogagent restart |
---|
| 20 | ;; |
---|
| 21 | *) echo "Usage: $0 {start|stop|restart|force-reload}" >&2; exit 1 ;; |
---|
| 22 | esac |
---|
| 23 | |
---|
Note: See
TracBrowser
for help on using the repository browser.