22 lines
363 B
Text
22 lines
363 B
Text
#!/sbin/openrc-run
|
|
|
|
depend() {
|
|
use net
|
|
after firewall
|
|
need redis
|
|
}
|
|
|
|
supervisor=supervise-daemon
|
|
name=nitter
|
|
description="nitter"
|
|
command=/usr/bin/nitter
|
|
directory=/var/lib/nitter
|
|
command_background=true
|
|
output_log=/var/log/nitter.log
|
|
error_log=/var/log/nitter.log
|
|
command_user=nitter:nitter
|
|
|
|
start_pre() {
|
|
checkpath -f -o $command_user /var/log/nitter.log
|
|
}
|
|
|