forked from MarlinFirmware/Marlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
restartd.conf
28 lines (22 loc) · 911 Bytes
/
restartd.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Restartd configuration file
# Format:
#
# <process_name> <regexp> <action_if_not_running> <action_if_running>
#
# process_name: the name of the process which is just for logging
# as it does not affect for the regexp
#
# regexp: the POSIX regular expression for the command line of the
# process
#
# action_if_not_running: a script or program name to execute if the
# regexp does not match the full process command line
#
# action_if_running: a script or program name to execute if the regexp
# matches the full process command line
# Example:
#
# restartd ".*restartd" "/bin/echo 'It is not running!' >/tmp/restartd.out" "/bin/echo 'It is running!' >/tmp/restartd.out"
octoprint ".*octoprint.*" "runuser -u rhradec /usr/lib/octoprint/bin/octoprint > /var/log/octoprint.log 2>&1 > /tmp/octo.log &"
mjpg ".*mjpg.*" "/home/rhradec/mjpg &"
wifi ".*dhcpc.*wlan.*" "/root/wifiWatchdog &"