feat: service files
This commit is contained in:
parent
f3fbb4c77f
commit
1b7b78d9ca
2 changed files with 28 additions and 0 deletions
12
service/openrc
Executable file
12
service/openrc
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/ksh
|
||||
# $ mv ./openrc /etc/rc.d/feuille
|
||||
# $ rcctl enable feuille
|
||||
# $ rcctl set feuille flags -U https://my.paste.bin
|
||||
# $ rcctl start feuille
|
||||
|
||||
daemon="/usr/local/bin/feuille"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_reload=NO
|
||||
rc_cmd $1
|
16
service/systemd
Normal file
16
service/systemd
Normal file
|
@ -0,0 +1,16 @@
|
|||
# set the flags you'd like to use in ExecStart
|
||||
# $ mv ./systemd /etc/systemd/system/feuille.service
|
||||
# $ systemctl daemon-reload
|
||||
# $ systemctl enable feuille
|
||||
# $ systemctl start feuille
|
||||
|
||||
[Unit]
|
||||
Description=Feuille - a fast, dead-simple socket-based pastebin
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/local/bin/feuille -U https://my.paste.bin
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in a new issue