Fix permissions rc
This commit is contained in:
15
executor-conf
Normal file
15
executor-conf
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
description="Sets executor initial evironment"
|
||||
|
||||
start() {
|
||||
# make parallel citation shut up
|
||||
mkdir -p ~executor/.parallel
|
||||
touch ~executor/.parallel/will-cite
|
||||
# repair ownership
|
||||
find /data \! -user executor -exec chown executor:executor {} \;
|
||||
# pidfile
|
||||
touch /var/run/checker.pid
|
||||
chown executor:executor /var/run/checker.pid
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user