Skip to content

Commit

Permalink
Add OpenRC (init.d) script
Browse files Browse the repository at this point in the history
  • Loading branch information
M. Mert Yildiran committed Oct 25, 2021
1 parent 5d9c901 commit a75cd70
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

# Build
build/
basenine
./basenine
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ install-init-systemd:
systemctl daemon-reload && \
systemctl restart basenine && \
systemctl status basenine

install-init-rc:
cp scripts/init/rc/basenine /etc/init.d/basenine && \
rc-update add basenine boot && \
rc-service basenine start && \
rc-service basenine status
7 changes: 7 additions & 0 deletions scripts/init/rc/basenine
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/sbin/openrc-run

# Move this file into /etc/init.d/basenine
# To add Basenine service at boot time, run:
# rc-update add basenine boot

command=/usr/local/bin/basenine

0 comments on commit a75cd70

Please sign in to comment.