Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
3982df9e24
|
|||
3bd632a39b
|
@@ -21,6 +21,8 @@ Quick Examples:
|
|||||||
- `rsm enable <svc>` - enable a service (autostart at boot)
|
- `rsm enable <svc>` - enable a service (autostart at boot)
|
||||||
- `rsm disable <svc>` - disable a service (no autostart at boot)
|
- `rsm disable <svc>` - disable a service (no autostart at boot)
|
||||||
- `rsm hup <svc>` - refresh a service (`SIGHUP`)
|
- `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:
|
Status:
|
||||||
|
|
||||||
|
2
rsm
2
rsm
@@ -495,6 +495,7 @@ do_enable_disable() {
|
|||||||
# show logs
|
# show logs
|
||||||
do_show_logs() {
|
do_show_logs() {
|
||||||
local LOGDIR="/var/log/"
|
local LOGDIR="/var/log/"
|
||||||
|
local SVDIR="/run/runit/service/"
|
||||||
monitors_array=($(xrandr -q))
|
monitors_array=($(xrandr -q))
|
||||||
local cmd=$1
|
local cmd=$1
|
||||||
local svc
|
local svc
|
||||||
@@ -538,6 +539,7 @@ do_show_logs() {
|
|||||||
# show error logs
|
# show error logs
|
||||||
do_show_err_logs() {
|
do_show_err_logs() {
|
||||||
local LOGDIR="/var/log/"
|
local LOGDIR="/var/log/"
|
||||||
|
local SVDIR="/run/runit/service/"
|
||||||
monitors_array=($(xrandr -q))
|
monitors_array=($(xrandr -q))
|
||||||
local cmd=$1
|
local cmd=$1
|
||||||
local svc
|
local svc
|
||||||
|
Reference in New Issue
Block a user