cronie : add runit service file

This commit is contained in:
Victor Tebar
2022-12-05 11:33:31 +00:00
parent 867dfe9b0b
commit 146da67962
3 changed files with 12 additions and 1 deletions

View File

@@ -2,3 +2,4 @@ de07b7229520bc859d987c721bab87c5 cronie-1.6.1.tar.gz
2962d9812fbbbdee1bd7f1c1ccb5e372 cronie.deny
0e150d97845e078efd599951c389b83a cronie.pam
bc467f8038f933c87be1c4003f212fc6 rc.crond
1f0ab4b9116a4a3dcfb34e87ef784ebb run.crond

3
main/cronie/run.crond Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
[ -r conf ] && . ./conf
exec crond -n $OPTS 2>&1

View File

@@ -6,6 +6,7 @@ version=1.6.1
release=1
source="https://github.com/cronie-crond/cronie/releases/download/$name-$version/$name-$version.tar.gz
rc.crond
run.crond
$name.deny
$name.pam"
@@ -34,6 +35,12 @@ build() {
install -Dm0644 contrib/0hourly $PKG/etc/cron.d/0hourly
install -Dm0755 contrib/0anacron $PKG/etc/cron.hourly/0anacron
# service files
if [ ! -e /sbin/init ] !! [ "$(readlink /sbin/init)" = /sbin/runit-init ] ; then
# runit service
install -Dm755 $SRC/run.crond $PKG/etc/sv/$name/run
else
# rc service
install -Dm755 $SRC/rc.crond $PKG/etc/rc.d/crond
install -Dm755 $SRC/rc.crond $PKG/etc/rc.d/crond
fi
}