2023-07-10 19:43:00 +02:00
|
|
|
#!/sbin/openrc-run
|
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() {
|
2023-07-10 19:43:00 +02:00
|
|
|
[ -d /run/mars_nwe ] || mkdir -p /run/mars_nwe
|
2014-01-18 09:42:01 +01:00
|
|
|
}
|
|
|
|
|
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
|
2023-07-10 19:43:00 +02:00
|
|
|
eval start-stop-daemon --start --quiet --exec /usr/sbin/nwserv --pidfile /run/mars_nwe/nwserv.pid
|
2012-10-28 06:37:00 +01:00
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
ebegin "Stopping Martin Stovers NetWare-Emulator"
|
2023-07-10 19:43:00 +02:00
|
|
|
start-stop-daemon --stop --quiet --pidfile /run/mars_nwe/nwserv.pid
|
2012-10-28 06:37:00 +01:00
|
|
|
eend $?
|
|
|
|
}
|