Revert "Remove eval calls from supervisor start functions"
This reverts commit 0d1f1010c2.
We need the eval in case someone uses something like:
command_args="this \"is a\" test"
This is related to #77.
			
			
This commit is contained in:
		| @@ -38,7 +38,10 @@ ssd_start() | ||||
| 		service_inactive && _inactive=true | ||||
| 		mark_service_inactive | ||||
| 	fi | ||||
| 	start-stop-daemon --start \ | ||||
| 	#the eval call is necessary for cases like: | ||||
| 	# command_args="this \"is a\" test" | ||||
| 	# to work properly. | ||||
| 	eval start-stop-daemon --start \ | ||||
| 		--exec $command \ | ||||
| 		${chroot:+--chroot} $chroot \ | ||||
| 		${procname:+--name} $procname \ | ||||
|   | ||||
| @@ -19,7 +19,10 @@ supervise_start() | ||||
| 	fi | ||||
|  | ||||
| 	ebegin "Starting ${name:-$RC_SVCNAME}" | ||||
| 	supervise-daemon --start \ | ||||
| 	# The eval call is necessary for cases like: | ||||
| 	# command_args="this \"is a\" test" | ||||
| 	# to work properly. | ||||
| 	eval supervise-daemon --start \ | ||||
| 		${chroot:+--chroot} $chroot \ | ||||
| 		${pidfile:+--pidfile} $pidfile \ | ||||
| 		${command_user+--user} $command_user \ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user