From 699233622f9f5d53c419fe73e56d0f304049ee05 Mon Sep 17 00:00:00 2001 From: James Gallagher Date: Mon, 30 Mar 2026 16:39:25 -0600 Subject: [PATCH 1/3] Added systemctl files in systemctl-files --- systemctl-files/besd | 14 ++++++++++++++ systemctl-files/besd.service | 23 +++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100755 systemctl-files/besd create mode 100644 systemctl-files/besd.service diff --git a/systemctl-files/besd b/systemctl-files/besd new file mode 100755 index 0000000000..92cce1ab99 --- /dev/null +++ b/systemctl-files/besd @@ -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 +# -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" diff --git a/systemctl-files/besd.service b/systemctl-files/besd.service new file mode 100644 index 0000000000..f9b21b93fc --- /dev/null +++ b/systemctl-files/besd.service @@ -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 From ec8d66909a6a0c75ab8ccaf0d7e587f74c291ef3 Mon Sep 17 00:00:00 2001 From: James Gallagher Date: Mon, 30 Mar 2026 16:47:32 -0600 Subject: [PATCH 2/3] Added a README to systemctl-files --- systemctl-files/README | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 systemctl-files/README diff --git a/systemctl-files/README b/systemctl-files/README new file mode 100644 index 0000000000..4e6171d93a --- /dev/null +++ b/systemctl-files/README @@ -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 using configure. + +Contributed by "White, Marcus O. (GSFC-619.0)[ADNET SYSTEMS INC]" From 3608d6f5418e33cd27a1977f1a3b21b70a9bf72c Mon Sep 17 00:00:00 2001 From: James Gallagher Date: Mon, 30 Mar 2026 16:52:57 -0600 Subject: [PATCH 3/3] Update to the README --- systemctl-files/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemctl-files/README b/systemctl-files/README index 4e6171d93a..69c53e36e5 100644 --- a/systemctl-files/README +++ b/systemctl-files/README @@ -1,6 +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 using configure. +besd script built using besd.in with configure. Contributed by "White, Marcus O. (GSFC-619.0)[ADNET SYSTEMS INC]"