Skip to content
Snippets Groups Projects
Commit 9cd0dc90 authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #6314: Use $LOFARROOT, with fallback to /opt/lofar, for startController.sh

parent fb4e1170
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# startController.sh executable taskname parenthostname parentService
#
# start the given executable
#
# start process
($1 $2 $3 $4 1 2>&1 | awk '{ print strftime("%Y-%m-%d %H:%M:%S"),$0; }' >>"/opt/lofar/var/log/$2.stdout") &
($1 $2 $3 $4 1 2>&1 | awk '{ print strftime("%Y-%m-%d %H:%M:%S"),$0; }' >>"${LOFARROOT:-/opt/lofar}/var/log/$2.stdout") &
# get its pid
# echo $!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment