]> Raphaƫl G. Git Repositories - ihttpd/blobdiff - SOURCES/ihttpd.service
Add dependencies to avoid race conditions and be sure we start in time
[ihttpd] / SOURCES / ihttpd.service
index 99616331cf929ac9b3827e6e9a3c9afb57f3ffda..00bfcd30f4715a9407131fa368156903022e70fe 100644 (file)
@@ -1,17 +1,19 @@
-# Service unit starting ihttpd.service on password request
+# Based on /usr/lib/systemd/system/debug-shell.service
 [Unit]
 [Unit]
-Description=Answer Password Requests from the Apache IHTTP Server
+Description=Spawn apache ihttpd server to answer password requests
 DefaultDependencies=no
 DefaultDependencies=no
-Conflicts=shutdown.target multi-user.target graphical.target
-After=plymouth-start.service
-Before=paths.target shutdown.target
-ConditionPathExists=!/run/plymouth/pid
+AllowIsolate=no
+IgnoreOnIsolate=yes
+Before=cryptsetup-pre.target
+After=systemd-networkd.service systemd-tmpfiles-setup.service
 
 [Service]
 Type=simple
 Environment=LANG=C
 
 [Service]
 Type=simple
 Environment=LANG=C
-ExecStart=/usr/sbin/ihttpd $OPTIONS -DFOREGROUND
-ExecReload=/usr/sbin/ihttpd $OPTIONS -k graceful
+ExecStart=/usr/sbin/ihttpd -DFOREGROUND
 KillSignal=SIGWINCH
 KillMode=mixed
 PIDFile=/run/ihttpd/ihttpd.pid
 KillSignal=SIGWINCH
 KillMode=mixed
 PIDFile=/run/ihttpd/ihttpd.pid
+
+[Install]
+WantedBy=sysinit.target