Browse Source

add systemd script

master
Tom Early 1 year ago
parent
commit
2e9907e3aa
  1. 2
      Makefile
  2. 12
      systemd/mrefd.service

2
Makefile

@ -63,7 +63,7 @@ install :
ln -s $(shell pwd)/$(EXE).blacklist $(CFGDIR)/$(EXE).blacklist
ln -s $(shell pwd)/$(EXE).whitelist $(CFGDIR)/$(EXE).whitelist
ln -s $(shell pwd)/$(EXE).interlink $(CFGDIR)/$(EXE).interlink
cp -f ../systemd/$(EXE).service /etc/systemd/system/
cp -f systemd/$(EXE).service /etc/systemd/system/
cp -f $(EXE) $(BINDIR)
mkdir -p $(DATADIR)
systemctl enable $(EXE).service

12
systemd/mrefd.service

@ -0,0 +1,12 @@
[Unit]
Description=mrefd
Requires=network.target
After=systemd-user-session.service network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/mrefd
Restart=always
[Install]
WantedBy=multi-user.target
Loading…
Cancel
Save