Added these systemd units files
This commit is contained in:
parent
dda5e80a69
commit
b898e6bddd
3 changed files with 34 additions and 0 deletions
8
web/init/masthelp.maintain.service
Normal file
8
web/init/masthelp.maintain.service
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=mastodon.help database update, maintainance and backup
|
||||
|
||||
[Service]
|
||||
# You can set User to what is most comfortable to you
|
||||
User=gnucco
|
||||
Type=simple
|
||||
ExecStart=/usr/local/share/webapps/mastodon.help/web/clitools/maintain/maintain.bash
|
9
web/init/masthelp.maintain.timer
Normal file
9
web/init/masthelp.maintain.timer
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=mastodon.help database update, maintainance and backup
|
||||
|
||||
[Timer]
|
||||
#OnCalendar=Mon,Tue,Thu,Fri,Sat,Sun *-*-* 03:00:00
|
||||
OnCalendar=*-*-* 03:00:00
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
17
web/init/masthelp.peerscrawl_loop.service
Normal file
17
web/init/masthelp.peerscrawl_loop.service
Normal file
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=mastodon.help peerscrawl loop
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
# You can set User to what is most comfortable to you
|
||||
User=gnucco
|
||||
Type=simple
|
||||
ExecStart=/usr/local/share/webapps/mastodon.help/web/clitools/maintain/pcloop.bash
|
||||
#ExecStop=/bin/kill $MAINPID
|
||||
#ExecReload=/bin/kill -HUP $MAINPID
|
||||
#KillMode=control-group
|
||||
Restart=on-failure
|
||||
RestartPreventExitStatus=255
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue