diff options
Diffstat (limited to 'testing/udpt/udpt.initd')
-rw-r--r-- | testing/udpt/udpt.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/udpt/udpt.initd b/testing/udpt/udpt.initd new file mode 100644 index 00000000000..f45c3617c2c --- /dev/null +++ b/testing/udpt/udpt.initd @@ -0,0 +1,20 @@ +#!/sbin/openrc-run + +description="UDP bittorrent Tracker" +supervisor=supervise-daemon +command=/usr/bin/udpt +command_args="-c /etc/udpt.conf" +command_user="udpt:udpt" +output_log=/var/log/$RC_SVCNAME.log +stopsig="SIGINT" + +depend() { + need net +} + +start_pre() { + checkpath --directory --owner $command_user --mode 0775 \ + /var/lib/$RC_SVCNAME + checkpath --file --owner $command_user --mode 0644 \ + /var/log/$RC_SVCNAME.log +} |