1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/sbin/runscript depend() { need net } start() { ebegin "Starting IceS 2" start-stop-daemon --background --start --pidfile /var/run/ices.pid --make-pidfile --exec /usr/bin/ices /etc/ices2/ices.xml eend $? } stop() { ebegin "Stopping IceS 2" start-stop-daemon --stop --pidfile /var/run/ices.pid --name ices eend $? }