Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
869b6f4d
Commit
869b6f4d
authored
Feb 09, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts/*: add upstart/systemd scripts
parent
22927cc2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
0 deletions
+56
-0
bpm-sw-prepare-log.sh
scripts/bpm-sw-prepare-log.sh
+11
-0
bpm-sw-server.conf
scripts/bpm-sw-server.conf
+24
-0
bpm-sw-shutdown.sh
scripts/bpm-sw-shutdown.sh
+6
-0
bpm-sw.service
scripts/bpm-sw.service
+15
-0
No files found.
scripts/bpm-sw-prepare-log.sh
0 → 100755
View file @
869b6f4d
#!/bin/bash
LOG_DIR
=
"/media/remote_logs"
REMOTE_HOST
=
"10.0.18.35"
REMOTE_LOG_DIR
=
"/export/remote_logs"
#rm -rf ${LOG_DIR}
#mkdir -p ${LOG_DIR}
#mount -t nfs -o proto=tcp,port=2049 ${REMOTE_HOST}:${REMOTE_LOG_DIR} ${LOG_DIR}
#sshfs -o allow_other -o kernel_cache -o auto_cache -o reconnect -o compression=no -o cache_timeout=600 -o ServerAliveInterval=15 ${REMOTE_HOST}:${REMOTE_LOG_DIR} ${LOG_DIR}
scripts/bpm-sw-server.conf
0 → 100644
View file @
869b6f4d
# BPM-SW server script
# this script will start/stop the BPM-SW server
# When to start the service
start
on
runlevel
[
2345
]
# When to stop the service
stop
on
runlevel
[
016
]
# if you want it to automatically restart if it crashes, leave the next line in
respawn
# configuration variables.
# You'll want to change these as needed
# tell upstart we're creating a daemon
# upstart manages PID creation for you.
expect
fork
script
# My startup script, plain old shell scripting here.
exec
/
usr
/
local
/
bin
/
dev_mngr
&
#emit fcs_server_running
end
script
scripts/bpm-sw-shutdown.sh
0 → 100755
View file @
869b6f4d
#!/bin/bash
killall dev_io
killall mdp_broker
killall dev_mngr
scripts/bpm-sw.service
0 → 100644
View file @
869b6f4d
[Unit]
Description=BPM-SW server
After=network-online.target
Wants=network-online.target
After=media-remote_logs.mount
Requires=media-remote_logs.mount
[Service]
ExecStartPre=/usr/local/bin/bpm-sw-prepare-log.sh
ExecStart=/usr/local/bin/dev_mngr
WorkingDirectory=/usr/local/bin
ExecStop=/usr/local/bin/bpm-sw-shutdown.sh
[Install]
WantedBy=multi-user.target
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment