Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advLigoRTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CDS
software
advLigoRTS
Commits
2353fe12
Commit
2353fe12
authored
4 years ago
by
Jameson Rollins
Browse files
Options
Downloads
Patches
Plain Diff
cli: additional rtcds commands
Add status and log commands, and check if the advligorts-fe package is installed.
parent
cb67fefa
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
support/bin/rtcds.in
+29
-1
29 additions, 1 deletion
support/bin/rtcds.in
with
29 additions
and
1 deletion
support/bin/rtcds.in
+
29
−
1
View file @
2353fe12
...
...
@@ -100,6 +100,10 @@ list_host_sys() {
check_host_sys
()
{
for
sys
;
do
if
!
systemctl
cat
rts@
${
sys
}
.target
>
/dev/null
;
then
log
"RTS front end systemd units don't seem to be available. Is the advligorts-fe package installed?"
exit
5
fi
if
!
systemctl is-enabled rts@
${
sys
}
.target
>
/dev/null
;
then
log
"System '
$sys
' is not enabled on this system, first enable with 'enable
${
sys
}
'."
exit
4
...
...
@@ -203,12 +207,15 @@ Available commands:
install <sys> install system
list|ls list systems for host
enable <sys>...|--all enable system start at boot
start <sys>...|--all start systems
restart <sys>...|--all restart running systems
stop|kill <sys>...|--all stop running systems
enable <sys>...|--all enable system start at boot
disable <sys>...|--all disable system start at boot
status <sys> show status for system services
log show logs for system services
-f follow logs
blog <sys> show last build log for system
-i print log paths
lsmod list loaded RTS kernel modules
...
...
@@ -299,6 +306,27 @@ case $cmd in
${
cmd
}
_sys
$@
fi
;;
'status'
)
if
[
-z
"
$1
"
]
;
then
log
"You must specify one system to show status."
exit
2
fi
sys
=
$1
systemctl status rts@
${
sys
}
.target rts-
{
awgtpman,epics,module
}
@
${
sys
}
.service
;;
'log'
)
args
=
if
[[
"
$1
"
==
'-f'
]]
;
then
args
=
"-f"
shift
fi
if
[
-z
"
$1
"
]
;
then
log
"You must specify one system to show log."
exit
2
fi
sys
=
$1
journalctl
$args
--unit
=
rts
*${
sys
}*
;;
'blog'
)
format
=
full
if
[[
"
$1
"
==
'-i'
]]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment