logging: Add logging command
Add new command and update startup scripts to use it Signed-off-by: Nicholas Mello <nick@nmello.dev>
This commit is contained in:
24
board/skeleton/etc/init.d/S20arcade-logging-setup
Normal file
24
board/skeleton/etc/init.d/S20arcade-logging-setup
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
LOG_DIR="/var/log/arcade/"
|
||||
|
||||
start() {
|
||||
echo "Setting up logging directory: ${LOG_DIR}"
|
||||
mkdir -p "${LOG_DIR}"
|
||||
chmod 1777 "${LOG_DIR}"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
restart)
|
||||
start
|
||||
;;
|
||||
*)
|
||||
echo "ERROR: Must be start, stop, or restart"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user