2012-10-28 06:37:00 +01:00
|
|
|
#!/sbin/runscript
|
2014-01-18 09:25:06 +01:00
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
2012-10-28 06:37:00 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
need net ipx
|
|
|
|
}
|
|
|
|
|
2014-01-18 09:42:01 +01:00
|
|
|
mkdir_marsnwedirs() {
|
|
|
|
[ -d /var/run/mars_nwe ] || mkdir -p /var/run/mars_nwe
|
|
|
|
}
|
|
|
|
|
2012-10-28 06:37:00 +01:00
|
|
|
start() {
|
|
|
|
ebegin "Starting Martin Stovers NetWare-Emulator"
|
2014-01-18 09:42:01 +01:00
|
|
|
mkdir_marsnwedirs
|
2014-01-18 09:31:04 +01:00
|
|
|
eval start-stop-daemon --start --quiet --exec /usr/sbin/nwserv --pidfile /var/run/mars_nwe/nwserv.pid
|
2012-10-28 06:37:00 +01:00
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
ebegin "Stopping Martin Stovers NetWare-Emulator"
|
2014-01-18 09:31:04 +01:00
|
|
|
start-stop-daemon --stop --quiet --pidfile /var/run/mars_nwe/nwserv.pid
|
2012-10-28 06:37:00 +01:00
|
|
|
eend $?
|
|
|
|
}
|