3 # Provides: invirt-remote-host
4 # Required-Start: $local_fs $remote_fs
5 # Required-Stop: $local_fs $remote_fs
6 # Default-Start: 2 3 4 5
8 # Short-Description: remctl configuration for an Invirt host
12 PACKAGE=invirt-remote-host
14 . /lib/lsb/init-functions
18 for i in /etc/remctl/acl/remote
19 do mako-render $i.mako > $i
25 log_begin_msg "Reloading config for $PACKAGE"
28 invoke-rc.d openbsd-inetd start # returns 1 if inetd is running
35 log_begin_msg "Starting the invirt-janitor for $PACKAGE"
36 daemon -n invirt-janitor -r invirt-janitor
42 log_begin_msg "Restarting the invirt-janitor for $PACKAGE"
43 daemon -n invirt-janitor --restart
47 log_begin_msg "Stopping the invirt-janitor for $PACKAGE"
48 daemon -n invirt-janitor --stop
52 log_success_msg "Usage: /etc/init.d/$PACKAGE {start|force-reload|restart|stop}"