Christian Rotzoll
6 years ago
7 changed files with 42 additions and 4 deletions
@ -0,0 +1,19 @@ |
|||
#!/bin/bash |
|||
|
|||
# command info |
|||
if [ "$1" = "-h" ] || [ "$1" = "-help" ]; then |
|||
echo "additional systemd services" |
|||
echo "blitz.systemd.sh log blockchain STARTED" |
|||
echo "blitz.systemd.sh log loghtning STARTED" |
|||
exit 1 |
|||
fi |
|||
|
|||
# check parameter |
|||
if [ "${1}" != "log" ]; then |
|||
echo "# FAIL: unkown parameter" |
|||
fi |
|||
|
|||
# writing log file entry |
|||
logFile="/home/admin/systemd.${2}.log" |
|||
echo "${3} $(date +%s)" >> ${logFile} |
|||
echo "# OK: log '${3}' written to ${logFile}" |
Loading…
Reference in new issue