mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
busybox: cron: always start if not cinfigured via settings addon
This commit is contained in:
parent
246f507f74
commit
d020cadf81
0
packages/sysutils/busybox/default.d/crond.conf
Normal file
0
packages/sysutils/busybox/default.d/crond.conf
Normal file
@ -84,6 +84,10 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw -m sha512 $USER_PASSWORD`"
|
||||
mkdir -p $INSTALL/lib/systemd/system
|
||||
cp $PKG_DIR/system.d.opt/cron.service $INSTALL/lib/systemd/system
|
||||
enable_service cron.service
|
||||
mkdir -p $INSTALL/usr/share/services
|
||||
cp -P $PKG_DIR/default.d/*.conf $INSTALL/usr/share/services
|
||||
cp $PKG_DIR/system.d.opt/cron-defaults.service $INSTALL/lib/systemd/system
|
||||
enable_service cron-defaults.service
|
||||
fi
|
||||
|
||||
enable_service debug-shell.service
|
||||
|
11
packages/sysutils/busybox/system.d.opt/cron-defaults.service
Normal file
11
packages/sysutils/busybox/system.d.opt/cron-defaults.service
Normal file
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Cron defaults
|
||||
After=local-fs.target
|
||||
|
||||
ConditionPathExists=!/storage/.cache/services/crond.conf
|
||||
ConditionPathExists=!/storage/.cache/services/crond.disabled
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/sh -c 'cp /usr/share/services/crond.conf /storage/.cache/services'
|
||||
RemainAfterExit=yes
|
@ -1,5 +1,7 @@
|
||||
[Unit]
|
||||
Description=Cron daemon
|
||||
After=syslog.target cron-defaults.service
|
||||
Requires=cron-defaults.service
|
||||
|
||||
ConditionPathExists=/storage/.cache/services/crond.conf
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user