OSDN Git Service

add $OPTS to avahi-daemon and isc-ntpd service frontend files
authormobinmob <mobinmob@disroot.org>
Fri, 1 May 2020 19:20:53 +0000 (22:20 +0300)
committermobinmob <mobinmob@disroot.org>
Fri, 1 May 2020 19:20:53 +0000 (22:20 +0300)
usr/share/66/service/avahi-daemon
usr/share/66/service/isc-ntpd

index 5aa4022..5476242 100644 (file)
@@ -3,8 +3,12 @@
 @description = "avahi daemon"
 @user = ( root )
 @depends = ( dbus )
+@options = ( log env )
 
 [start]
 @build = custom
 @shebang = "/bin/sh"
-@execute = ( exec avahi-daemon -s )
+@execute = ( exec avahi-daemon ${OPTS} )
+
+[environment]
+OPTS=-s
index 75e82b4..6ee600e 100644 (file)
@@ -2,12 +2,14 @@
 @type = classic
 @description = "isc ntp daemon"
 @user = ( root )
-@options = ( log )
+@options = ( log env )
 
 [start]
 @build = custom
 @shebang = "/bin/sh"
 @execute = ( exec 2>&1 
-exec isc-ntpd -g -u ntpd:ntpd -n )
+exec isc-ntpd ${OPTS} -u ntpd:ntpd -n )
 
+[environment]
+OPTS=-g