Compare commits
2 Commits
ac6048530d
...
d05661dc15
Author | SHA1 | Date | |
---|---|---|---|
d05661dc15 | |||
8efff3b5ad |
6
Makefile
6
Makefile
@ -1,16 +1,16 @@
|
|||||||
all: run
|
all: run
|
||||||
|
|
||||||
run:
|
run:
|
||||||
./rec.sh
|
./src/nbmrec.sh
|
||||||
|
|
||||||
install:
|
install:
|
||||||
sudo cp ./src/rec.sh /usr/local/bin/rec.sh
|
sudo cp ./src/nbmrec.sh /usr/local/bin/nbmrec.sh
|
||||||
sudo cp ./conf/nbmrec.service /etc/systemd/system/nbmrec.service
|
sudo cp ./conf/nbmrec.service /etc/systemd/system/nbmrec.service
|
||||||
sudo cp ./conf/nbmrec.timer /etc/systemd/system/nbmrec.timer
|
sudo cp ./conf/nbmrec.timer /etc/systemd/system/nbmrec.timer
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
sudo systemctl enable nbmrec.timer
|
sudo systemctl enable nbmrec.timer
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
sudo rm -rf /usr/local/bin/rec.sh
|
sudo rm -rf /usr/local/bin/nbmrec.sh
|
||||||
sudo rm -rf /etc/systemd/system/nbmrec.service /etc/systemd/system/nbmrec.timer
|
sudo rm -rf /etc/systemd/system/nbmrec.service /etc/systemd/system/nbmrec.timer
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
|
@ -4,7 +4,7 @@ Description=NBMrec daemon nocturnal bird migration service
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
User=1000
|
User=1000
|
||||||
ExecStart=/usr/local/bin/nmbrec.sh -d night
|
ExecStart=/usr/local/bin/nbmrec.sh -d night
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
Reference in New Issue
Block a user