mirror of
https://git.phreedom.club/localhost_frssoft/mastodon-group-bot.git
synced 2025-05-10 22:28:39 +00:00
some fixes
This commit is contained in:
parent
f013670852
commit
d1439f87ac
7 changed files with 49 additions and 35 deletions
|
@ -1,18 +1,18 @@
|
|||
#!/sbin/openrc-run
|
||||
name=$RC_SVCNAME
|
||||
command="/usr/bin/$name"
|
||||
command_args="-config"
|
||||
cfgfile="/etc/$name.json"
|
||||
command_arg1="-config /etc/$name/config.json"
|
||||
command_arg2="-db /var/lib/$name/limits.db"
|
||||
pidfile="/run/$name.pid"
|
||||
user="nobody:nobody"
|
||||
user="nobody"
|
||||
description="Mastodon group bot which reposts toots"
|
||||
start() {
|
||||
ebegin "Starting $name"
|
||||
start-stop-daemon -bm -S -u $user -p $pidfile -x $command -- $command_args $cfgfile
|
||||
start-stop-daemon -bm -S -u $user -p $pidfile -x $command -- $command_arg1 $command_arg2
|
||||
eend $?
|
||||
}
|
||||
stop() {
|
||||
ebegin "Stopping $name"
|
||||
start-stop-daemon -K -p $pidfile
|
||||
eend $?
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue