mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 15:37:49 +00:00
busybox: port cron to systemd
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
a686acc68f
commit
0fe8fca6d6
@ -85,8 +85,9 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw -m sha512 $USER_PASSWORD`"
|
|||||||
|
|
||||||
# cron support
|
# cron support
|
||||||
if [ "$CRON_SUPPORT" = "yes" ] ; then
|
if [ "$CRON_SUPPORT" = "yes" ] ; then
|
||||||
mkdir -p $INSTALL/etc/init.d
|
mkdir -p $INSTALL/lib/systemd/system
|
||||||
cp $PKG_DIR/scripts/09_crond $INSTALL/etc/init.d/
|
cp $PKG_DIR/system.d.opt/cron.service $INSTALL/lib/systemd/system
|
||||||
|
enable_service cron.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
enable_service debug-shell.service
|
enable_service debug-shell.service
|
||||||
|
13
packages/sysutils/busybox/system.d.opt/cron.service
Normal file
13
packages/sysutils/busybox/system.d.opt/cron.service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Cron daemon
|
||||||
|
|
||||||
|
ConditionPathExists=/storage/.cache/services/crond.conf
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStartPre=/bin/sh -c 'mkdir -p /storage/.cache/cron/crontabs'
|
||||||
|
ExecStart=/sbin/crond -f -S
|
||||||
|
KillMode=process
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user