cmogstored.git  about / heads / tags
alternative mogstored implementation for MogileFS
blob 5af3aea0442f4c18cd71b3b96c367a81e95bb021 879 bytes (raw)
$ git show HEAD:examples/cmogstored@.service	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
# ==> /etc/systemd/system/cmogstored@.service <==
# systemd-style socket activation requires cmogstored 1.5.0 and later
# Since SIGUSR2 upgrades do not work under systemd, this service file
# allows starting two simultaneous services during upgrade time
# (e.g. cmogstored@1 cmogstored@2) with the intention that they take
# turns running in-between upgrades.  This should allow upgrading
# without downtime

[Unit]
Description = cmogstored storage server %i
Wants = cmogstored.socket
After = cmogstored.socket

[Service]
ExecStart = /usr/local/bin/cmogstored \
	    --httplisten=127.0.0.1:7500 \
	    --mgmtlisten=127.0.0.1:7501 \
	    --docroot=/var/mogdata
Sockets = cmogstored.socket
KillSignal = SIGQUIT
User = mogstored
Group = nogroup
LimitNOFILE = 10000
# some clients are slow, give them time before SIGKILL
TimeoutStopSec = 7200

[Install]
WantedBy = multi-user.target

git clone https://yhbt.net/cmogstored.git