OSDN Git Service

NetworkManager: make switches configurable in [environment], prefer -d.
authormobinmob <mobinmob@disroot.org>
Mon, 23 Nov 2020 23:32:22 +0000 (01:32 +0200)
committermobinmob <mobinmob@disroot.org>
Mon, 23 Nov 2020 23:32:22 +0000 (01:32 +0200)
usr/share/66/service/NetworkManager

index 605513b..eef89de 100644 (file)
@@ -3,9 +3,15 @@
 @version = @VERSION@
 @description = "networkmanager daemon"
 @user = ( root )
-@options = ( log )
+@options = ( log env )
 @extdepends = ( dbus )
 
 [start]
-@execute = ( NetworkManager -n )
+@execute = ( execl-cmdline -s { NetworkManager ${cmd_args} }  )
+
+[environment]
+# Necessary switches are either -d or -n. -n is for --no-daemon,
+# -d is for --debug. -d is preferred as it directs log output to 
+# the stdout as well as syslog.
+cmd_args=! -d