x2goserver.init 442 B

123456789101112131415161718192021
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2016 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. DAEMON=/usr/sbin/x2gocleansessions
  5. PIDFILE=/run/x2goserver.pid
  6. start() {
  7. ebegin "Starting ${SVCNAME}"
  8. start-stop-daemon --start --quiet --pidfile ${PIDFILE} \
  9. --exec ${DAEMON} -- $DAEMON_OPTS
  10. eend $?
  11. }
  12. stop() {
  13. ebegin "Stopping ${SVCNAME}"
  14. start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
  15. eend $?
  16. }