saving uncommitted changes in /etc prior to emerge run

This commit is contained in:
2015-02-27 01:58:55 +01:00
committed by root
commit b3cea8d893
2385 changed files with 507432 additions and 0 deletions

25
init.d/twistd Executable file
View File

@@ -0,0 +1,25 @@
#!/sbin/runscript
depend() {
need net
}
start() {
if [ -z "${TWISTD_OPTS}" ]; then
eerror "TWISTD_OPTS is not set!"
eerror "You need to configure twistd in /etc/conf.d/twistd."
return 1
fi
export PYTHONPATH
ebegin "Starting twistd"
start-stop-daemon --start --quiet --pidfile /var/run/twistd.pid \
--exec /usr/bin/twistd -- --pidfile /var/run/twistd.pid \
${TWISTD_OPTS}
eend $? "Failed to start twistd"
}
stop() {
ebegin "Stopping twistd"
start-stop-daemon --stop --quiet --pidfile /var/run/twistd.pid
eend $? "Failed to stop twistd"
}