2 Commits

Author SHA1 Message Date
3982df9e24 Fixed bug of improper listing logs, when script runs on /usr/bin 2021-01-21 04:43:16 +02:00
3bd632a39b Update README.md 2021-01-19 22:53:42 +02:00
2 changed files with 4 additions and 0 deletions

View File

@@ -21,6 +21,8 @@ Quick Examples:
- `rsm enable <svc>` - enable a service (autostart at boot)
- `rsm disable <svc>` - disable a service (no autostart at boot)
- `rsm hup <svc>` - refresh a service (`SIGHUP`)
- `rsm logs <svc>` or `rsm alllogs <svc>` - lists all logs for a service (access and error)
- `rsm errorlogs <svc>` - lists all error logs for a service
Status:

2
rsm
View File

@@ -495,6 +495,7 @@ do_enable_disable() {
# show logs
do_show_logs() {
local LOGDIR="/var/log/"
local SVDIR="/run/runit/service/"
monitors_array=($(xrandr -q))
local cmd=$1
local svc
@@ -538,6 +539,7 @@ do_show_logs() {
# show error logs
do_show_err_logs() {
local LOGDIR="/var/log/"
local SVDIR="/run/runit/service/"
monitors_array=($(xrandr -q))
local cmd=$1
local svc