memcached update systemd

This commit is contained in:
midoks
2022-06-18 17:56:00 +08:00
parent abdf3dc959
commit 913f9e0503
4 changed files with 324 additions and 40 deletions
@@ -0,0 +1,13 @@
[Unit]
Description=Free & open source, high-performance, distributed memory object caching system.
After=network.target
[Service]
Type=simple
EnvironmentFile=-{$SERVER_PATH}/memcached/memcached.env
ExecStart={$SERVER_PATH}/memcached/bin/memcached -d -l $IP -p $PORT -u $USER -m $CACHESIZE -c $MAXCONN -P {$SERVER_PATH}/memcached/memcached.pid $OPTIONS
ExecReload=/bin/kill -USR2 $MAINPID
Restart=on-failure
[Install]
WantedBy=multi-user.target