mirror of
https://github.com/versity/versitygw.git
synced 2026-03-27 09:54:59 +00:00
Fix warnings from newer systemd: Standard output type syslog is obsolete, automatically updating to journal. This updates the stdout/stderr to journal output type which is what is getting set anyways after the syslog type has been deprecated. No expected behavior change with this other than quieting warnings.
34 lines
1.0 KiB
Desktop File
34 lines
1.0 KiB
Desktop File
[Unit]
|
|
Description=VersityGW
|
|
Documentation=https://github.com/versity/versitygw/wiki
|
|
Wants=network-online.target
|
|
After=network-online.target remote-fs.target
|
|
AssertFileIsExecutable=/usr/bin/versitygw
|
|
AssertPathExists=/etc/versitygw.d/%i.conf
|
|
|
|
[Service]
|
|
WorkingDirectory=/root
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=versitygw-%i
|
|
|
|
User=root
|
|
Group=root
|
|
|
|
EnvironmentFile=/etc/versitygw.d/%i.conf
|
|
|
|
ExecStart=/bin/bash -c 'if [[ ! ("${VGW_BACKEND}" == "posix" || "${VGW_BACKEND}" == "scoutfs" || "${VGW_BACKEND}" == "s3" || "${VGW_BACKEND}" == "azure" || "${VGW_BACKEND}" == "plugin") ]]; then echo "VGW_BACKEND environment variable ${VGW_BACKEND} not set to valid backend type"; exit 1; fi && exec /usr/bin/versitygw "$VGW_BACKEND" "$VGW_BACKEND_ARG"'
|
|
|
|
# Let systemd restart this service always
|
|
Restart=always
|
|
|
|
# Specifies the maximum file descriptor number that can be opened by this process
|
|
LimitNOFILE=65536
|
|
|
|
# Specifies the maximum number of threads this process can create
|
|
TasksMax=infinity
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|