12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- [Unit]
- Description=memcached daemon
- After=network.target
- [Service]
- Environment=PORT=11211
- Environment=USER=memcached
- Environment=MAXCONN=1024
- Environment=CACHESIZE=256
- Environment="OPTIONS=-l 127.0.0.1"
- ExecStart=/usr/bin/memcached -p ${PORT} -u ${USER} -m ${CACHESIZE} -c ${MAXCONN} $OPTIONS
- PrivateTmp=true
- ProtectSystem=full
- NoNewPrivileges=true
- PrivateDevices=true
- CapabilityBoundingSet=CAP_SETGID CAP_SETUID CAP_SYS_RESOURCE
- RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
- [Install]
- WantedBy=multi-user.target
|