diff options
author | 2016-07-24 21:05:41 +0100 | |
---|---|---|
committer | 2016-07-27 22:18:44 +0200 | |
commit | 5210bac33931b2b8716f1bf45ab39a27c481582c (patch) | |
tree | 2294bb4e1de10c746b2514621b7cf6d5d90b0da5 /net-p2p/syncthing/files | |
parent | mail-filter/rmilter: fix handling of dkim USE flag (diff) | |
download | gentoo-5210bac33931b2b8716f1bf45ab39a27c481582c.tar.gz gentoo-5210bac33931b2b8716f1bf45ab39a27c481582c.tar.bz2 gentoo-5210bac33931b2b8716f1bf45ab39a27c481582c.zip |
net-p2p/syncting: fix init scripts for strelaysrv
Diffstat (limited to 'net-p2p/syncthing/files')
-rw-r--r-- | net-p2p/syncthing/files/strelaysrv.confd | 3 | ||||
-rw-r--r-- | net-p2p/syncthing/files/strelaysrv.initd | 30 | ||||
-rw-r--r-- | net-p2p/syncthing/files/strelaysrv.logrotate | 6 |
3 files changed, 39 insertions, 0 deletions
diff --git a/net-p2p/syncthing/files/strelaysrv.confd b/net-p2p/syncthing/files/strelaysrv.confd new file mode 100644 index 000000000000..00564f140542 --- /dev/null +++ b/net-p2p/syncthing/files/strelaysrv.confd @@ -0,0 +1,3 @@ +# Options to pass to relaysrv +# see /usr/libexec/syncthing/strelaysrv --help for more information +SR_OPTS= diff --git a/net-p2p/syncthing/files/strelaysrv.initd b/net-p2p/syncthing/files/strelaysrv.initd new file mode 100644 index 000000000000..7eb77be26fda --- /dev/null +++ b/net-p2p/syncthing/files/strelaysrv.initd @@ -0,0 +1,30 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +SR_USER=strelaysrv +SR_GROUP=strelaysrv +SR_HOMEDIR=/var/lib/strelaysrv +SR_LOGFILE=/var/log/syncthing/strelaysrv.log + + +description="Relay service for syncthing" +command="/usr/libexec/syncthing/strelaysrv" +command_args="${SR_OPTS}" +pidfile="/run/strelaysrv.pid" +start_stop_daemon_args="--background + --user ${SR_USER} + --group ${SR_GROUP} + --chdir \"${SR_HOMEDIR}\" + --make-pidfile + --stdout \"${SR_LOGFILE}\" + --stderr \"${SR_LOGFILE}\" + " + +depend() { + need net +} + +start_pre() { + checkpath -q -d -o ${SR_USER}:${SR_GROUP} ${SR_HOMEDIR} + checkpath -q -f -o ${SR_USER}:${SR_GROUP} ${SR_LOGFILE} +} diff --git a/net-p2p/syncthing/files/strelaysrv.logrotate b/net-p2p/syncthing/files/strelaysrv.logrotate new file mode 100644 index 000000000000..f168cbfc413e --- /dev/null +++ b/net-p2p/syncthing/files/strelaysrv.logrotate @@ -0,0 +1,6 @@ +/var/log/syncthing/relaysrv.log { + missingok + notifempty + sharedscripts + copytruncate +} |