packages/utils/micrond/files/etc/init.d/micrond
Adrian Schmutzler 26ccda6eed micrond: show stdout and stderr in log
So far, all output created by scripts run with micrond has been
discarded. Since there is no reason for that and it also does not
match the expected behavior, this enables both stdout and stderr
output for the service.

If not desired, a user can still use >/dev/null or similar in his/her
micrond jobs to disable output easily and similar to what it would be
on other systems.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-04-22 16:57:34 +02:00

15 lines
269 B
Bash
Executable file

#!/bin/sh /etc/rc.common
START=50
USE_PROCD=1
CRONDIR=/usr/lib/micron.d
start_service() {
procd_open_instance
procd_set_param command /usr/sbin/micrond "$CRONDIR"
procd_set_param respawn
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance
}