We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
grep
1 parent 459fa50 commit 9eb7045Copy full SHA for 9eb7045
autostart/crew-sudo.sh
@@ -1,4 +1,4 @@
1
-if [[ "$(< "/proc/$(ps -p $PPID -o ppid= | tr -d ' ')/cmdline")" == /sbin/frecon* ]]; then
+if grep -q '^/sbin/frecon' < "/proc/$(ps -p $PPID -o ppid= | tr -d ' ')/cmdline"; then
2
# start crew-sudo daemon if running in VT-2
3
[ -f /tmp/crew-sudo.socket ] || crew-sudo --daemon
4
fi
component/daemon.rb
@@ -11,7 +11,7 @@ def runas_daemon(argv)
11
Process.daemon(false, true)
12
Process.setproctitle('sudo-server daemon process')
13
14
- message "crew-sudo daemon started with PID #{Process.pid}", loglevel: :warning
+ warn "crew-sudo: Daemon started with PID #{Process.pid}"
15
16
# redirect output to log
17
$log = File.open(DAEMON_LOG_PATH, 'w')
0 commit comments