mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-09 00:00:05 +01:00
added systemd support
This commit is contained in:
parent
10b3174a50
commit
53ff3aa013
8 changed files with 31 additions and 3 deletions
4
Makefile
4
Makefile
|
@ -44,12 +44,12 @@ endif
|
|||
dist: clean linux
|
||||
|
||||
mkdir -p $(DIST)opt/ecix/birdwatcher/bin
|
||||
mkdir -p $(DIST)etc/init
|
||||
mkdir -p $(DIST)etc/systemd
|
||||
mkdir -p $(DIST)etc/ecix
|
||||
|
||||
|
||||
# Copy config and startup script
|
||||
cp etc/init/* DIST/etc/init/.
|
||||
cp etc/systemd/* DIST/etc/systemd/.
|
||||
cp etc/ecix/* DIST/etc/ecix/.
|
||||
rm -f DIST/etc/ecix/*.local.*
|
||||
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.2.0
|
||||
1.3.0
|
||||
|
|
6
etc/systemd/birdwatcher.target
Normal file
6
etc/systemd/birdwatcher.target
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Unit]
|
||||
Wants=birdwatcher4.service birdwatcher6.service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
11
etc/systemd/birdwatcher4.service
Normal file
11
etc/systemd/birdwatcher4.service
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
[Unit]
|
||||
Description=Birdwatcher (IPv4)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/ecix/birdwatcher/bin/birdwatcher-linux-amd64
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
11
etc/systemd/birdwatcher6.service
Normal file
11
etc/systemd/birdwatcher6.service
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
[Unit]
|
||||
Description=Birdwatcher (IPv6)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/ecix/birdwatcher/bin/birdwatcher-linux-amd64 -6
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Add table
Reference in a new issue