-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARCHIVE: Add systemd configuration files for eosarchived daemon. Fixe…
…s EOS-2696
- Loading branch information
Showing
4 changed files
with
82 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# ---------------------------------------------------------------------- | ||
# File: eosarchived.service | ||
# Author: Elvin Sindrilaru - CERN | ||
# ---------------------------------------------------------------------- | ||
# | ||
# ************************************************************************ | ||
# * EOS - the CERN Disk Storage System * | ||
# * Copyright (C) 2018 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 <http://www.gnu.org/licenses/>.* | ||
# ************************************************************************ | ||
[Unit] | ||
Description=EOS archiver daemon | ||
After=network-online.target local-fs.target | ||
Wants=network-online.target local-fs.target | ||
|
||
[Service] | ||
WorkinDirectory=/var/eos/ | ||
LogDirectory=eos/archive/ | ||
EnvironmentFile=/etc/sysconfig/eosarchived_env | ||
ExecStart=/usr/bin/eosarchived.py | ||
Type=simple | ||
User=eosarchi | ||
Group=c3 | ||
Restart=on-abort | ||
RestartSec=5 | ||
LimitNOFILE=65000 | ||
KillMode=Mixed | ||
SuccessExitStatus=KILL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Options for the eosarchived daemon | ||
# EOSARCHIVED_OPTIONS= | ||
|
||
# Enable core dumping | ||
DAEMON_COREFILE_LIMIT="unlimited" | ||
|
||
# Directory where log files are saved | ||
LOG_DIR="/var/log/eos/archive/" | ||
|
||
# This directory must match the one set in xrd.cf.mgm as it is used for the | ||
# communication between the MGM and the eosarchived daemon | ||
EOS_ARCHIVE_DIR=/var/eos/archive/ | ||
|
||
# Configuration file which can be modified while the daemon is running and | ||
# whose changes are automatically picked up by new transfers | ||
EOS_ARCHIVE_CONF=/etc/eosarchived.conf | ||
|
||
# This is the location of the archive keytab file containing just **one** entry | ||
# for the user account under which the eosarchived daemon is running. The same | ||
# entry need to be present in the eos.keytab file so that the eosarchived can | ||
# have full access to the EOS. | ||
XrdSecSSSKT=/etc/eos-archive.keytab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters