Hi David,
I didn’t set this up myself, and don’t claim to understand it, but we appear to be using the following unit file, autogenerated at boot time from the init script that comes with ArchivesSpace:
# Automatically generated by systemd-sysv-generator
[Unit]
Documentation=man:systemd-sysv-generator(8)
SourcePath=/etc/init.d/archivesspace
Description=LSB: Start the ArchivesSpace archival management system
Before=multi-user.target
Before=multi-user.target
Before=multi-user.target
Before=graphical.target
After=network-online.target
Wants=network-online.target
[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
SuccessExitStatus=5 6
ExecStart=/etc/init.d/archivesspace start
ExecStop=/etc/init.d/archivesspace stop
Also, I can’t vouch for how well it works, but this might be helpful:
https://github.com/bohnelang/systemd-ezproxy-service
Good luck,
Tom
Tom McNeely (he/him)
IT System Administrator
Western Washington University Library
From: archivesspac...@lyrasislists.org <archivesspac...@lyrasislists.org>
On Behalf Of David Horan
Sent: Wednesday, May 1, 2024 2:07 PM
To: Archivesspac...@lyrasislists.org
Subject: [ArchivesSpace Users Group] Configure linux systemd service start
|
You don't often get email from david...@uncp.edu. Learn why this is important |
--
You received this message because you are subscribed to the Google Groups "Archivesspace_Users_Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
Archivesspace_User...@lyrasislists.org.
To view this discussion on the web visit
https://groups.google.com/a/lyrasislists.org/d/msgid/Archivesspace_Users_Group/SA1PR01MB8373E1A56CC3979EF2BEC98B82192%40SA1PR01MB8373.prod.exchangelabs.com.
We have service files for both Solr and ArchivesSpace that are working for us.
Our ArchivesSpace service file is:
# Systemd Unit file for Archivesspace Service
[Unit]
Description=Archivesspace Service
After=syslog.target network.target
[Service]
Type=forking
ExecStart=/pathtoarchivesspace/archivesspace/archivesspace.sh start
ExecStop=/pathtoarchivesspace/archivesspace/archivesspace.sh stop
PIDFile=/pathotoarchivesspace/archivesspace/data/.archivesspace.pid
User=archivesspace
Restart=on-failure
[Install]
WantedBy=multi-user.target
From:
archivesspac...@lyrasislists.org <archivesspac...@lyrasislists.org> on behalf of Thomas McNeely <to...@wwu.edu>
Date: Wednesday, May 1, 2024 at 5:35 PM
To: David Horan <David...@uncp.edu>, Archivesspac...@lyrasislists.org <Archivesspac...@lyrasislists.org>
Subject: [ArchivesSpace Users Group] RE: Configure linux systemd service start
|
EXTERNAL MESSAGE: Use caution with replies, links, and attachments. |
To view this discussion on the web visit https://groups.google.com/a/lyrasislists.org/d/msgid/Archivesspace_Users_Group/MW4PR02MB717283272E0A18F69CA8975BCE192%40MW4PR02MB7172.namprd02.prod.outlook.com.
To view this discussion on the web visit https://groups.google.com/a/lyrasislists.org/d/msgid/Archivesspace_Users_Group/DM5PR1901MB20886234D597D23BC76DF916FF182%40DM5PR1901MB2088.namprd19.prod.outlook.com.