1[Unit]
2Description=memcached daemon
3After=network.target
4
5[Service]
6EnvironmentFile=/etc/sysconfig/memcached
7ExecStart=/usr/bin/memcached -p ${PORT} -u ${USER} -m ${CACHESIZE} -c ${MAXCONN} $OPTIONS
8
9PrivateTmp=true
10ProtectSystem=full
11NoNewPrivileges=true
12PrivateDevices=true
13
14# Required for dropping privileges and running as a different user
15CapabilityBoundingSet=CAP_SETGID CAP_SETUID
16
17[Install]
18WantedBy=multi-user.target
19