# ---------------------------------------------------------------------- # File: eos@.service # Author: Ivan Arizanovic - ComTrade Solutions Engineering # ---------------------------------------------------------------------- # # ************************************************************************ # * EOS - the CERN Disk Storage System * # * Copyright (C) 2016 CERN/Switzerland * # * * # * This program is free software: you can redistribute it and/or modify * # * it under the terms of the GNU General Public License as published by * # * the Free Software Foundation, either version 3 of the License, or * # * (at your option) any later version. * # * * # * This program is distributed in the hope that it will be useful, * # * but WITHOUT ANY WARRANTY; without even the implied warranty of * # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * # * GNU General Public License for more details. * # * * # * You should have received a copy of the GNU General Public License * # * along with this program. If not, see .* # ************************************************************************ [Unit] Description=EOS %i After=network-online.target local-fs.target Wants=network-online.target local-fs.target PartOf=eos.target [Service] WorkingDirectory=/var/eos EnvironmentFile=/etc/sysconfig/eos_env ExecStartPre=/bin/sh -c "/usr/sbin/eos_start_pre.sh eos-start-pre %i" ExecStart=/usr/sbin/eos_start.sh -n %i -c /etc/xrd.cf.%i -l /var/log/eos/xrdlog.%i -Rdaemon ExecStop=/bin/sh -c "/usr/sbin/eos_start_pre.sh eos-stop %i" Type=simple User=root Group=root Restart=on-failure RestartSec=5 LimitNOFILE=65000 # Leverage 'soft-stop' feature of FST (waits for writes to complete || timeout) KillMode=mixed # ExitStatus is KILL because FST daemon. Stop-signal from FST daemon is 9/KILL. SuccessExitStatus=KILL [Install] WantedBy=eos.target