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>
This commit is contained in:
Robby Workman 2021-07-18 02:38:21 -05:00 committed by Willy Sudiarto Raharjo
parent 7f2c56c9fc
commit a845cef355
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 1 additions and 4 deletions

View File

@ -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