Change Pid dir and add system d support

Package-Manager: portage-2.2.7
RepoMan-Options: --force
This commit is contained in:
Mario Fetka
2014-01-18 09:25:06 +01:00
parent 49617bda4d
commit 6087b6a67c
6 changed files with 32 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
@@ -9,12 +9,12 @@ depend() {
start() {
ebegin "Starting Martin Stovers NetWare-Emulator"
eval start-stop-daemon --start --quiet --exec /usr/sbin/nwserv --pidfile /var/run/mars_nwe/nwserv.pid
eval start-stop-daemon --start --quiet --exec /usr/sbin/nwserv --pidfile /run/mars_nwe/nwserv.pid
eend $?
}
stop() {
ebegin "Stopping Martin Stovers NetWare-Emulator"
start-stop-daemon --stop --quiet --pidfile /var/run/mars_nwe/nwserv.pid
start-stop-daemon --stop --quiet --pidfile /run/mars_nwe/nwserv.pid
eend $?
}

View File

@@ -0,0 +1,11 @@
[Unit]
Description=Martin Stover Netware Emulator
After=network.target
[Service]
Type=forking
PIDFile=/run/mars_nwe/nwserv.pid
ExecStart=/usr/sbin/nwserv
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1 @@
d /run/mars_nwe 710 root root