diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2021-07-18 02:38:21 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-07-19 16:23:32 +0700 |
commit | a845cef355b0eaa313fc56262b340ec38057e595 (patch) | |
tree | 2e6a1c5e71409f1de0dd9257c92e496ae8498e64 /network | |
parent | 7f2c56c9fc965acddc07dd50fc06a7511b706088 (diff) |
network/monkey: Don't package /var/run/monkey
Since /var/run is a link to /run (and /run is tmpfs), there's
no point packaging any subdir of /run or /var/run.
It's highly likely that further changes will be needed for
this build. Among those are:
1) create /var/run/monkey/ during init (rc.monkey)
2) change ownership of /var/run/monkey/ to apache:apache during init
Unrelated to the above, but also needed if this app uses
logrotate to rotate its logs: the logrotate file needs to
specify the user and group to switch to for the rotation process.
See e.g. the logrotate file in network/yadifa/
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/monkey/monkey.SlackBuild | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/network/monkey/monkey.SlackBuild b/network/monkey/monkey.SlackBuild index 7aa95042eda6..24f00af8f607 100644 --- a/network/monkey/monkey.SlackBuild +++ b/network/monkey/monkey.SlackBuild @@ -116,10 +116,7 @@ sed -i "s|# Load /usr/lib${LIBDIRSUFFIX}/monkey/monkey-logger.so|Load /usr/lib${ # make log dir mkdir -p $PKG/var/log/monkey -# make run dir -mkdir -p $PKG/var/run/monkey - -# move init script to it's dir +# move init script to its dir mkdir -p $PKG/etc/rc.d install -Dpm 0644 monkey.init $PKG/etc/rc.d/rc.monkey.new |