diff options
Diffstat (limited to 'net-misc/bopm/files')
-rw-r--r-- | net-misc/bopm/files/bopm-3.1.3-quarantine-bad-pid-file.patch | 16 | ||||
-rw-r--r-- | net-misc/bopm/files/bopm.init.d-r2 (renamed from net-misc/bopm/files/bopm.init.d-r1) | 4 |
2 files changed, 19 insertions, 1 deletions
diff --git a/net-misc/bopm/files/bopm-3.1.3-quarantine-bad-pid-file.patch b/net-misc/bopm/files/bopm-3.1.3-quarantine-bad-pid-file.patch new file mode 100644 index 000000000000..fedcd0980a04 --- /dev/null +++ b/net-misc/bopm/files/bopm-3.1.3-quarantine-bad-pid-file.patch @@ -0,0 +1,16 @@ +Bopm writes its own pid file, but this is handled by the init script via +openrc-run. +--- +diff --git a/bopm.conf.sample b/bopm.conf.sample +index e26dc17..fa5ce1d 100644 +--- a/bopm.conf.sample ++++ b/bopm.conf.sample +@@ -9,7 +9,7 @@ options { + * Full path and filename for storing the process ID of the running + * BOPM. + */ +- pidfile = "/run/bopm/bopm.pid"; ++ pidfile = "/run/bopm/junk/bopm.pid"; + + /* + * How many seconds to store the IP address of hosts which are diff --git a/net-misc/bopm/files/bopm.init.d-r1 b/net-misc/bopm/files/bopm.init.d-r2 index 6a292f800be2..de6d959b9f74 100644 --- a/net-misc/bopm/files/bopm.init.d-r1 +++ b/net-misc/bopm/files/bopm.init.d-r2 @@ -12,5 +12,7 @@ depend() { } start_pre() { - checkpath -o ${BOPM_UID} -d "$(dirname "${PIDFILE}")" + checkpath -o 0:0 -d /run/bopm + checkpath -o ${BOPM_UID} -d /run/bopm/junk + checkpath -o ${BOPM_UID} -f /run/bopm/junk/bopm.pid } |