mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-04-27 15:57:28 -07:00
Twisted has changed to a single release pkg. This new pkg. now has python3 support. Package-Manager: portage-2.3.1_p8
26 lines
563 B
Plaintext
26 lines
563 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
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"
|
|
}
|