diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-12 12:12:27 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-12 12:12:27 +0000 |
commit | 70d27c1344f6a6a51e11c610966542333b6f432a (patch) | |
tree | 8680cb2739f1c29ae714d0ffef2e49f96cd42ca9 /net-misc/bird/files/initd-bird-2 | |
parent | ed29ea7e5783aeccaddc89856f6fe75fb78179e5 (diff) |
gentoo auto-resync : 12:03:2023 - 12:12:26
Diffstat (limited to 'net-misc/bird/files/initd-bird-2')
-rw-r--r-- | net-misc/bird/files/initd-bird-2 | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/net-misc/bird/files/initd-bird-2 b/net-misc/bird/files/initd-bird-2 index 3b759df883d8..fc4908990c20 100644 --- a/net-misc/bird/files/initd-bird-2 +++ b/net-misc/bird/files/initd-bird-2 @@ -5,13 +5,12 @@ extra_started_commands="reload" -pidfile="/run/${RC_SVCNAME}.pid" +pidfile="/run/${RC_SVCNAME}/${RC_SVCNAME}.pid" command="/usr/sbin/${RC_SVCNAME}" retry=15 -start_stop_daemon_args="--make-pidfile" CONF_FILE="/etc/${RC_SVCNAME}.conf" -SOCK="/run/${RC_SVCNAME}.ctl" +SOCK="/run/${RC_SVCNAME}/${RC_SVCNAME}.ctl" if [ ${BIRD_GROUP} ]; then BIRD_OPTS="${BIRD_OPTS} -g ${BIRD_GROUP}" @@ -22,10 +21,9 @@ fi client_args="-s ${SOCK}" command_args="${client_args} -c ${CONF_FILE} -P ${pidfile} ${BIRD_OPTS}" -client_args="${client_args} -r" depend() { - need net + use net use logger } @@ -52,8 +50,12 @@ reload() { eend $? } +start_pre() { + checkpath -d -m 0755 -o bird:bird "/run/${RC_SVCNAME}" +} + start_post() { - checkpath -f -m 0655 -o bird:bird "${pidfile}" + ln -sf "${SOCK}" /run } stop_pre() { |