diff options
author | Austin English <wizardedit@gentoo.org> | 2016-05-03 19:48:20 -0500 |
---|---|---|
committer | Austin English <wizardedit@gentoo.org> | 2016-05-03 19:48:20 -0500 |
commit | 0f1a5374b9792e20672f222fc38b2cbb8b5ef5f8 (patch) | |
tree | cdff54ce2397a0c9d4136d54ad52cca3e7ca15b7 /net-misc/siproxd/files | |
parent | net-misc/ser: remove old version (diff) | |
download | gentoo-0f1a5374b9792e20672f222fc38b2cbb8b5ef5f8.tar.gz gentoo-0f1a5374b9792e20672f222fc38b2cbb8b5ef5f8.tar.bz2 gentoo-0f1a5374b9792e20672f222fc38b2cbb8b5ef5f8.zip |
net-misc/siproxd: use #!/sbin/openrc-run instead of #!/sbin/runscript
Gentoo-Bug: https://bugs.gentoo.org/573846
Package-Manager: portage-2.2.26
Diffstat (limited to 'net-misc/siproxd/files')
-rw-r--r-- | net-misc/siproxd/files/siproxd.rc6 | 4 | ||||
-rw-r--r-- | net-misc/siproxd/files/siproxd.rc7 | 31 | ||||
-rw-r--r-- | net-misc/siproxd/files/siproxd.rc8 | 4 |
3 files changed, 4 insertions, 35 deletions
diff --git a/net-misc/siproxd/files/siproxd.rc6 b/net-misc/siproxd/files/siproxd.rc6 index 9d7fae75808b..63ffe152cafb 100644 --- a/net-misc/siproxd/files/siproxd.rc6 +++ b/net-misc/siproxd/files/siproxd.rc6 @@ -1,5 +1,5 @@ -#!/sbin/runscript -# Copyright 1999-2005 Gentoo Foundation +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ diff --git a/net-misc/siproxd/files/siproxd.rc7 b/net-misc/siproxd/files/siproxd.rc7 deleted file mode 100644 index 88ba0331f466..000000000000 --- a/net-misc/siproxd/files/siproxd.rc7 +++ /dev/null @@ -1,31 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -depend() { - need net -} - -check_config() { - if [[ ! -f /etc/siproxd.conf ]]; then - eerror "Please create /etc/siproxd.conf first!" - return 1 - fi - return 0 -} - -start() { - check_config || return 1 - checkpath -q -d /var/run/siproxd -o siproxd:siproxd - ebegin "Starting siproxd" - start-stop-daemon --start --exec /usr/sbin/siproxd -- \ - -p /var/run/siproxd/siproxd.pid -c /etc/siproxd.conf - eend $? -} - -stop() { - ebegin "Stopping siproxd" - start-stop-daemon --stop --pidfile /var/run/siproxd/siproxd.pid - eend $? -} diff --git a/net-misc/siproxd/files/siproxd.rc8 b/net-misc/siproxd/files/siproxd.rc8 index d85b32f22d33..146fefbc81ad 100644 --- a/net-misc/siproxd/files/siproxd.rc8 +++ b/net-misc/siproxd/files/siproxd.rc8 @@ -1,5 +1,5 @@ -#!/sbin/runscript -# Copyright 1999-2014 Gentoo Foundation +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ |