Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions systemctl-files/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This directory holds files that will enable the BES to be controlled
using the systemd/systemctl utilities found on a modern Unix system.
These can be used in place of the chkconfig script and the current
besd script built using besd.in with configure.

Contributed by "White, Marcus O. (GSFC-619.0)[ADNET SYSTEMS INC]" <marcus.o.white@nasa.gov>
14 changes: 14 additions & 0 deletions systemctl-files/besd
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Service-specific configuration file for besd. This will be sourced by
# systemd for the default service (besd.service)

# Please take a look at /etc/besd/besd.conf to have an idea what you
# can override.
# -i back-end server installation directory
# -c use back-end server configuration file CONFIG
# -d send debugging for CONTEXT to cerr or <filename>
# -p set port to PORT
# -r bes.pid file stored in directory PID_DIR
# -s specifies a secure server using SLL authentication
# -u set unix socket to UNIX_SOCKET

BESD_OPTIONS = "-i /usr -c /etc/bes/bes.conf -r /run"
23 changes: 23 additions & 0 deletions systemctl-files/besd.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[Unit]
Description=Hyrax Back-End Service
After=network.target httpd.service

[Service]
Type=simple
EnvironmentFile=-/etc/sysconfig/besd
ExecStart=/usr/bin/besdaemon $BESD_OPTIONS
ExecReload=/usr/bin/kill -HUP $MAINPID
Restart=on-failure
RestartSec=30s
PIDFile=/run/bes.pid
#KillMode=control-group
#TimeoutStopSec=30s
# Uncomment to immediately kill all processes, including the subprocesses
KillMode=mixed

# Increase the default a bit in order to allow many simultaneous
# files to be monitored, we might need a lot of fds.
LimitNOFILE=16384

[Install]
WantedBy=multi-user.target
Loading