Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DMT-runtime-configuration
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
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
GDS
DMT-runtime-configuration
Commits
a4cbc73b
Commit
a4cbc73b
authored
1 year ago
by
Jameson Graef Rollins
Browse files
Options
Downloads
Patches
Plain Diff
add procmgt systemd ExecStartPre commands to clean up old buffers before starting
parent
f4811ca1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
systemd/dmt-procmgt@.service
+15
-4
15 additions, 4 deletions
systemd/dmt-procmgt@.service
with
15 additions
and
4 deletions
systemd/dmt-procmgt@.service
+
15
−
4
View file @
a4cbc73b
...
...
@@ -3,11 +3,22 @@ Description=DMT procmgt service %i
After
=
network-online.target
[Service]
# clear out any old shared memory partitions before starting the
# process manager. This would maybe more natuarlly be an
# ExecStopPost, but those commands are given the exit status of the
# ExecStart command, which is not what we want here. NOTE the '-'
# before the script path that indicates that the exit status of this
# command is to be ignored.
ExecStartPre
=
-~/scripts/shm_all smkill
# add a little bit of extra time before starting, to ensure that any
# lingering stuff after a previous stop isn't lying around. This also
# would be better done after stop, but we need to find the cleanest
# way to handle that.
ExecStartPre
=
/bin/sleep 5
# FIXME: check that there's not a way to do these pre-start checks
# after shutdown.
ExecStart
=
/usr/bin/procmgt --file:/home/dmtexec/procmgt/%i --runlist start
# wait extra time because procmgt doesn't always wait for all it's
# children before exiting. We do this as an ExecStopPost so that it
# happens in all cases, not just on auto-restarts.
ExecStopPost
=
/bin/sleep 10
# FIXME: do we want to auto restart?
# Restart=always
# RestartSec=10
...
...
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