Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lebt-alisson-scanner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
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
icshwi
lebt-alisson-scanner
Commits
2e9a10ce
Commit
2e9a10ce
authored
7 years ago
by
Alexander Söderqvist
Browse files
Options
Downloads
Patches
Plain Diff
Updated systemd serivce and README
parent
89adc0ba
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
misc/README
+5
-3
5 additions, 3 deletions
misc/README
misc/emu-lebt.service
+5
-3
5 additions, 3 deletions
misc/emu-lebt.service
with
10 additions
and
6 deletions
misc/README
+
5
−
3
View file @
2e9a10ce
...
...
@@ -7,8 +7,10 @@ The work around is to run the ioc as root user. A special systemd service has be
The systemd service specification should be placed in the root file system under /etc/systemd/system/
To enable the service from boot, specify path to your rootfs e.g.
systemctl --root=/export/nfsroots/ifc1210/rootfs-NEW/ enable emu-lebt
To reload systemd services and start on already running system: systemctl daemon-reload
To start the ioc: systemctl start emu-lebt
To automatically start the service only for the EMU host, place a script containing:
systemctl start emu-lebt
in the {path to startup file hiearchy}/boot/{emu hostname}/
It is important that you name the script so that it is executed the last. The scripts are executed in alphanumerical order.
This diff is collapsed.
Click to expand it.
misc/emu-lebt.service
+
5
−
3
View file @
2e9a10ce
[Unit]
Description
=
IOC: emu-lebt
After
=
rc-local.service
After
=
rc-local.service local-fs.target
RequiresMountsFor
=
/opt/startup/ioc/VME_EMU-iamspecial/emu /opt/epics/modules
[Install]
WantedBy
=
multi-user.target
[Service]
User
=
root
# Only execute IOC if st.cmd exists
AssertPathExists
=
/opt/startup/ioc/VME_EMU-iamspecial/emu/st.cmd
...
...
@@ -20,3 +21,4 @@ EnvironmentFile=/opt/startup/ioc/VME_EMU-iamspecial/emu/env.sh
# Run procServ with user ioc
ExecStart
=
/usr/bin/procServ --allow -f -L /var/log/procServ/out-emu -i ^C^D -c /var/run/procServ/emu ${PROCSERV_PORT} ${EPICS_MODULES_PATH}/environment/${ENVIRONMENT_VERSION}/${BASE}/bin/${EPICS_HOST_ARCH}/iocsh /opt/startup/ioc/VME_EMU-iamspecial/emu/st.cmd -n emu
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