mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-27 18:20:07 +00:00
cronie : add runit service file
This commit is contained in:
@@ -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
3
main/cronie/run.crond
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
[ -r conf ] && . ./conf
|
||||
exec crond -n $OPTS 2>&1
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user