[Unit]
Description=Scylla Server
After=local-fs.target network-online.target
Requires=local-fs.target network-online.target
Wants=scylla-jmx.service
Wants=scylla-housekeeping-restart.timer
Wants=scylla-housekeeping-daily.timer

[Service]
PermissionsStartOnly=true
Type=notify
LimitMEMLOCK=infinity
LimitNOFILE=800000
LimitAS=infinity
LimitNPROC=8096
{{#debian}}
EnvironmentFile=/etc/default/scylla-server
{{/debian}}
{{#redhat}}
EnvironmentFile=/etc/sysconfig/scylla-server
{{/redhat}}
EnvironmentFile=/etc/scylla.d/*.conf
ExecStartPre=/usr/lib/scylla/scylla_prepare
ExecStart=/usr/bin/scylla $SCYLLA_ARGS $SEASTAR_IO $DEV_MODE $CPUSET
ExecStopPost=/usr/lib/scylla/scylla_stop
TimeoutStartSec=900
KillMode=process
Restart=on-abnormal
User=scylla
OOMScoreAdjust=-950
StandardOutput=syslog
StandardError=syslog
SyslogLevelPrefix=false
{{#debian}}
{{^jessie}}
AmbientCapabilities=CAP_SYS_NICE
{{/jessie}}
{{/debian}}

[Install]
WantedBy=multi-user.target
