mirror of
https://github.com/versity/versitygw.git
synced 2026-01-07 04:06:23 +00:00
34 lines
983 B
Desktop File
34 lines
983 B
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=syslog
|
|
StandardError=syslog
|
|
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") ]]; then echo "VGW_BACKEND environment variable not set to one of posix, scoutfs, or s3"; 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
|
|
|