Change Pid dir and add system d support
Package-Manager: portage-2.2.7 RepoMan-Options: --force
This commit is contained in:
@@ -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 $?
|
||||
}
|
||||
|
||||
11
net-fs/mars-nwe/files/mars-nwe.service
Normal file
11
net-fs/mars-nwe/files/mars-nwe.service
Normal 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
|
||||
1
net-fs/mars-nwe/files/mars-nwe.tmpfilesd
Normal file
1
net-fs/mars-nwe/files/mars-nwe.tmpfilesd
Normal file
@@ -0,0 +1 @@
|
||||
d /run/mars_nwe 710 root root
|
||||
Reference in New Issue
Block a user