Sfoglia il codice sorgente

Systemd target path modification

Laurent HUBERT 10 mesi fa
parent
commit
8a6d84e812
2 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 1 1
      Makefile
  2. 4 0
      systemd/lfirewall.service

+ 1 - 1
Makefile

@@ -5,7 +5,7 @@ FIREWALL_ETC_DIR=/etc/lfirewall
 FIREWALL_CONF=lfirewall.conf
 PREFIX=
 INSTALL_DIR=$(PREFIX)/sbin
-SYSTEMD_INSTALL_DIR=$(PREFIX)/etc/systemd/system
+SYSTEMD_INSTALL_DIR=$(PREFIX)/usr/lib/systemd/system
 SERVICE_FILE=lfirewall.service
 SYSTEMD_SERVICE_FILE=$(SYSTEMD_INSTALL_DIR)/$(SERVICE_FILE)
 

+ 4 - 0
systemd/lfirewall.service

@@ -1,5 +1,9 @@
 [Unit]
 Description=Light Firewall
+DefaultDependencies=no
+Before=network-pre.target
+Wants=network-pre.target local-fs.target
+After=local-fs.target
 
 [Service]
 Type=oneshot