moat-kv 0.71.0__py3-none-any.whl → 0.71.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- moat/kv/__init__.py +6 -7
- moat/kv/_cfg.yaml +3 -2
- moat/kv/actor/__init__.py +2 -1
- moat/kv/actor/deletor.py +4 -1
- moat/kv/auth/__init__.py +12 -13
- moat/kv/auth/_test.py +4 -1
- moat/kv/auth/password.py +11 -7
- moat/kv/backend/mqtt.py +4 -5
- moat/kv/client.py +20 -39
- moat/kv/code.py +3 -3
- moat/kv/command/data.py +4 -3
- moat/kv/command/dump/__init__.py +36 -34
- moat/kv/command/internal.py +2 -3
- moat/kv/command/job.py +1 -2
- moat/kv/command/type.py +3 -6
- moat/kv/data.py +9 -8
- moat/kv/errors.py +16 -8
- moat/kv/mock/__init__.py +2 -12
- moat/kv/model.py +29 -33
- moat/kv/obj/__init__.py +3 -3
- moat/kv/obj/command.py +3 -3
- moat/kv/runner.py +4 -5
- moat/kv/server.py +106 -126
- moat/kv/types.py +10 -12
- {moat_kv-0.71.0.dist-info → moat_kv-0.71.7.dist-info}/METADATA +6 -2
- moat_kv-0.71.7.dist-info/RECORD +47 -0
- {moat_kv-0.71.0.dist-info → moat_kv-0.71.7.dist-info}/WHEEL +1 -1
- moat_kv-0.71.7.dist-info/licenses/LICENSE +3 -0
- moat_kv-0.71.7.dist-info/licenses/LICENSE.APACHE2 +202 -0
- moat_kv-0.71.7.dist-info/licenses/LICENSE.MIT +20 -0
- moat_kv-0.71.7.dist-info/top_level.txt +1 -0
- build/lib/docs/source/conf.py +0 -201
- build/lib/examples/pathify.py +0 -45
- build/lib/moat/kv/__init__.py +0 -19
- build/lib/moat/kv/_cfg.yaml +0 -93
- build/lib/moat/kv/_main.py +0 -91
- build/lib/moat/kv/actor/__init__.py +0 -98
- build/lib/moat/kv/actor/deletor.py +0 -139
- build/lib/moat/kv/auth/__init__.py +0 -444
- build/lib/moat/kv/auth/_test.py +0 -166
- build/lib/moat/kv/auth/password.py +0 -234
- build/lib/moat/kv/auth/root.py +0 -58
- build/lib/moat/kv/backend/__init__.py +0 -67
- build/lib/moat/kv/backend/mqtt.py +0 -71
- build/lib/moat/kv/client.py +0 -1025
- build/lib/moat/kv/code.py +0 -236
- build/lib/moat/kv/codec.py +0 -11
- build/lib/moat/kv/command/__init__.py +0 -1
- build/lib/moat/kv/command/acl.py +0 -180
- build/lib/moat/kv/command/auth.py +0 -261
- build/lib/moat/kv/command/code.py +0 -293
- build/lib/moat/kv/command/codec.py +0 -186
- build/lib/moat/kv/command/data.py +0 -265
- build/lib/moat/kv/command/dump/__init__.py +0 -143
- build/lib/moat/kv/command/error.py +0 -149
- build/lib/moat/kv/command/internal.py +0 -248
- build/lib/moat/kv/command/job.py +0 -433
- build/lib/moat/kv/command/log.py +0 -53
- build/lib/moat/kv/command/server.py +0 -114
- build/lib/moat/kv/command/type.py +0 -201
- build/lib/moat/kv/config.py +0 -46
- build/lib/moat/kv/data.py +0 -216
- build/lib/moat/kv/errors.py +0 -561
- build/lib/moat/kv/exceptions.py +0 -126
- build/lib/moat/kv/mock/__init__.py +0 -101
- build/lib/moat/kv/mock/mqtt.py +0 -159
- build/lib/moat/kv/mock/tracer.py +0 -63
- build/lib/moat/kv/model.py +0 -1069
- build/lib/moat/kv/obj/__init__.py +0 -646
- build/lib/moat/kv/obj/command.py +0 -241
- build/lib/moat/kv/runner.py +0 -1347
- build/lib/moat/kv/server.py +0 -2809
- build/lib/moat/kv/types.py +0 -513
- ci/rtd-requirements.txt +0 -4
- ci/test-requirements.txt +0 -7
- ci/travis.sh +0 -96
- debian/.gitignore +0 -7
- debian/changelog +0 -1435
- debian/control +0 -43
- debian/moat-kv/usr/lib/python3/dist-packages/docs/source/conf.py +0 -201
- debian/moat-kv/usr/lib/python3/dist-packages/examples/pathify.py +0 -45
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/__init__.py +0 -19
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/_cfg.yaml +0 -93
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/_main.py +0 -91
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/actor/__init__.py +0 -98
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/actor/deletor.py +0 -139
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/auth/__init__.py +0 -444
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/auth/_test.py +0 -166
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/auth/password.py +0 -234
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/auth/root.py +0 -58
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/backend/__init__.py +0 -67
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/backend/mqtt.py +0 -71
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/client.py +0 -1025
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/code.py +0 -236
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/codec.py +0 -11
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/command/__init__.py +0 -1
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/command/acl.py +0 -180
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/command/auth.py +0 -261
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/command/code.py +0 -293
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/command/codec.py +0 -186
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/command/data.py +0 -265
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/command/dump/__init__.py +0 -143
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/command/error.py +0 -149
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/command/internal.py +0 -248
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/command/job.py +0 -433
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/command/log.py +0 -53
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/command/server.py +0 -114
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/command/type.py +0 -201
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/config.py +0 -46
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/data.py +0 -216
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/errors.py +0 -561
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/exceptions.py +0 -126
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/mock/__init__.py +0 -101
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/mock/mqtt.py +0 -159
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/mock/tracer.py +0 -63
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/model.py +0 -1069
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/obj/__init__.py +0 -646
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/obj/command.py +0 -241
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/runner.py +0 -1347
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/server.py +0 -2809
- debian/moat-kv/usr/lib/python3/dist-packages/moat/kv/types.py +0 -513
- debian/moat-kv.postinst +0 -3
- debian/rules +0 -20
- debian/source/format +0 -1
- debian/watch +0 -4
- docs/Makefile +0 -20
- docs/make.bat +0 -36
- docs/source/TODO.rst +0 -61
- docs/source/_static/.gitkeep +0 -0
- docs/source/acls.rst +0 -80
- docs/source/auth.rst +0 -84
- docs/source/client_protocol.rst +0 -456
- docs/source/code.rst +0 -341
- docs/source/command_line.rst +0 -1187
- docs/source/common_protocol.rst +0 -47
- docs/source/conf.py +0 -201
- docs/source/debugging.rst +0 -70
- docs/source/extend.rst +0 -37
- docs/source/history.rst +0 -36
- docs/source/index.rst +0 -75
- docs/source/model.rst +0 -54
- docs/source/overview.rst +0 -83
- docs/source/related.rst +0 -89
- docs/source/server_protocol.rst +0 -450
- docs/source/startup.rst +0 -31
- docs/source/translator.rst +0 -244
- docs/source/tutorial.rst +0 -711
- docs/source/v3.rst +0 -168
- examples/code/transform.scale.yml +0 -21
- examples/code/transform.switch.yml +0 -82
- examples/code/transform.timeslot.yml +0 -63
- examples/pathify.py +0 -45
- moat/kv/codec.py +0 -11
- moat_kv-0.71.0.dist-info/RECORD +0 -188
- moat_kv-0.71.0.dist-info/top_level.txt +0 -9
- scripts/current +0 -15
- scripts/env +0 -8
- scripts/init +0 -39
- scripts/recover +0 -17
- scripts/rotate +0 -33
- scripts/run +0 -29
- scripts/run-all +0 -10
- scripts/run-any +0 -10
- scripts/run-single +0 -15
- scripts/success +0 -4
- systemd/moat-kv-recover.service +0 -21
- systemd/moat-kv-rotate.service +0 -20
- systemd/moat-kv-rotate.timer +0 -10
- systemd/moat-kv-run-all.service +0 -26
- systemd/moat-kv-run-all@.service +0 -25
- systemd/moat-kv-run-any.service +0 -26
- systemd/moat-kv-run-any@.service +0 -25
- systemd/moat-kv-run-single.service +0 -26
- systemd/moat-kv-run-single@.service +0 -25
- systemd/moat-kv.service +0 -27
- systemd/postinst +0 -7
- systemd/sysusers +0 -3
- {moat_kv-0.71.0.dist-info → moat_kv-0.71.7.dist-info}/licenses/LICENSE.txt +0 -0
scripts/recover
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
set -ex
|
3
|
-
|
4
|
-
# This script tries to recover from hybrid mode start failure
|
5
|
-
# by re-starting in master mode.
|
6
|
-
|
7
|
-
if ! test "$MODE" = hybrid ; then
|
8
|
-
echo "Not hybrid mode. Not restarting." >&2
|
9
|
-
exit 1
|
10
|
-
fi
|
11
|
-
|
12
|
-
if test -f "$TEMP" ; then
|
13
|
-
echo "$TEMP exists, not restarting" >&2
|
14
|
-
exit 1
|
15
|
-
fi
|
16
|
-
/usr/lib/moat/kv/current "$TEMP"
|
17
|
-
|
scripts/rotate
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
set -ex
|
3
|
-
|
4
|
-
# This script tells MoaT-KV to continue with the next log file.
|
5
|
-
# By default it writes a full dump daily.
|
6
|
-
|
7
|
-
cd "$DEST"
|
8
|
-
D=$(date +"$DATE")
|
9
|
-
test -d $D || mkdir -p $D
|
10
|
-
cd $D
|
11
|
-
|
12
|
-
x=$(ls|sort -rn|head -1)
|
13
|
-
if test -n "$x" ; then
|
14
|
-
x=$(expr $(basename $x .dkv) + 1)
|
15
|
-
I="-i"
|
16
|
-
else
|
17
|
-
x=0
|
18
|
-
I=""
|
19
|
-
fi
|
20
|
-
|
21
|
-
export PYTHONPATH
|
22
|
-
moat -c /etc/moat/moat.cfg kv client log dest $I "$DEST/$D/$x.dkv"
|
23
|
-
if test $x -eq 0 ; then
|
24
|
-
# Now, delete some old backups
|
25
|
-
cd "$DEST"
|
26
|
-
|
27
|
-
# delete hourly after ten days but keep the day's first backup
|
28
|
-
find . -maxdepth 1 ! -name \*-00 -mtime +10 -print0|xargs -0r rm -rf
|
29
|
-
# delete daily after 45 days but keep the month's first backup
|
30
|
-
find . -maxdepth 1 ! -name \*01-00 -mtime +45 -print0|xargs -0r rm -rf
|
31
|
-
# delete monthly (i.e. the rest) after a year or so
|
32
|
-
find . -maxdepth 1 -mtime +400 -print0|xargs -0r rm -rf
|
33
|
-
fi
|
scripts/run
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
set -ex
|
3
|
-
|
4
|
-
# This script starts up MoaT-KV.
|
5
|
-
|
6
|
-
# Normally, starting MoaT-KV on a host where clients don't connect locally is
|
7
|
-
# a bad idea. However, on a system that has more than one network namespace
|
8
|
-
# you need to use a specific address. So set LOCAL=yes to force starting
|
9
|
-
# anyway.
|
10
|
-
|
11
|
-
if test "$LOCAL" != "yes" && test "$(moat util cfg kv.conn.host)" != "127.0.0.1"; then
|
12
|
-
echo "Server is not localhost: not starting."
|
13
|
-
exit 42 # mark as succeeded
|
14
|
-
fi
|
15
|
-
|
16
|
-
if test "$MODE" = "master" ; then
|
17
|
-
/usr/lib/moat/kv/current "$TEMP"
|
18
|
-
fi
|
19
|
-
|
20
|
-
if test ! -v NAME ; then
|
21
|
-
echo "NAME is not set. Exiting." >&2
|
22
|
-
exit 1
|
23
|
-
fi
|
24
|
-
|
25
|
-
if test -v TEMP && test -s "$TEMP" ; then
|
26
|
-
exec moat -c /etc/moat/moat.cfg kv server -a -l "$TEMP" "$NAME"
|
27
|
-
else
|
28
|
-
exec moat -c /etc/moat/moat.cfg kv server "$NAME"
|
29
|
-
fi
|
scripts/run-all
DELETED
scripts/run-any
DELETED
scripts/run-single
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
set -ex
|
3
|
-
|
4
|
-
# This script file starts up a MoaT-KV single-node runner.
|
5
|
-
|
6
|
-
if test ! -v NAME ; then
|
7
|
-
echo "NAME is not set. Exiting." >&2
|
8
|
-
exit 1
|
9
|
-
fi
|
10
|
-
|
11
|
-
if test $# = 1 ; then
|
12
|
-
exec moat -c /etc/moat/moat.cfg kv job -n "$NAME" -g "$1" run
|
13
|
-
else
|
14
|
-
exec moat -c /etc/moat/moat.cfg kv job -n "$NAME" run
|
15
|
-
fi
|
scripts/success
DELETED
systemd/moat-kv-recover.service
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
[Unit]
|
2
|
-
Description=MoaT-KV state recovery
|
3
|
-
Conflicts=moat-kv.service
|
4
|
-
Conflicts=distkv.service
|
5
|
-
|
6
|
-
AssertFileNotEmpty=/etc/moat/moat.cfg
|
7
|
-
|
8
|
-
[Install]
|
9
|
-
|
10
|
-
[Service]
|
11
|
-
Type=oneshot
|
12
|
-
|
13
|
-
ExecStart=/usr/lib/moat/kv/recover
|
14
|
-
ExecStartPost=!/bin/systemctl restart moat-kv.service
|
15
|
-
|
16
|
-
EnvironmentFile=/usr/lib/moat/kv/env
|
17
|
-
EnvironmentFile=-/etc/moat/kv.env
|
18
|
-
|
19
|
-
User=MoaT-KV
|
20
|
-
Group=MoaT
|
21
|
-
|
systemd/moat-kv-rotate.service
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
[Unit]
|
2
|
-
Description=MoaT-KV log rotate
|
3
|
-
Requires=moat-kv.service
|
4
|
-
After=moat-kv.service
|
5
|
-
Conflicts=distkv-rotate.service
|
6
|
-
|
7
|
-
ConditionFileNotEmpty=/etc/moat/moat.cfg
|
8
|
-
ConditionPathIsDirectory=/var/lib/moat/kv
|
9
|
-
|
10
|
-
[Install]
|
11
|
-
|
12
|
-
[Service]
|
13
|
-
ExecStart=/usr/lib/moat/kv/rotate
|
14
|
-
|
15
|
-
EnvironmentFile=/usr/lib/moat/kv/env
|
16
|
-
EnvironmentFile=-/etc/moat/kv.env
|
17
|
-
|
18
|
-
User=MoaT-KV
|
19
|
-
Group=MoaT
|
20
|
-
|
systemd/moat-kv-rotate.timer
DELETED
systemd/moat-kv-run-all.service
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
[Unit]
|
2
|
-
Description=MoaT-KV default all-nodes runner
|
3
|
-
After=moat-kv.service
|
4
|
-
Requires=moat-kv.service
|
5
|
-
Conflicts=distkv-run-all.service
|
6
|
-
|
7
|
-
ConditionFileNotEmpty=/etc/moat/moat.cfg
|
8
|
-
|
9
|
-
[Install]
|
10
|
-
WantedBy=multi-user.target
|
11
|
-
|
12
|
-
[Service]
|
13
|
-
Type=notify
|
14
|
-
ExecStart=/usr/lib/moat/kv/run-all
|
15
|
-
|
16
|
-
User=MoaT-KV
|
17
|
-
Group=MoaT
|
18
|
-
|
19
|
-
EnvironmentFile=/usr/lib/moat/kv/env
|
20
|
-
EnvironmentFile=-/etc/moat/kv.env
|
21
|
-
|
22
|
-
TimeoutSec=300
|
23
|
-
WatchdogSec=10
|
24
|
-
|
25
|
-
Restart=always
|
26
|
-
RestartSec=10
|
systemd/moat-kv-run-all@.service
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
[Unit]
|
2
|
-
Description=MoaT-KV all-nodes runner for %i
|
3
|
-
After=moat-kv.service
|
4
|
-
Requires=moat-kv.service
|
5
|
-
|
6
|
-
ConditionFileNotEmpty=/etc/moat/moat.cfg
|
7
|
-
|
8
|
-
[Install]
|
9
|
-
WantedBy=multi-user.target
|
10
|
-
|
11
|
-
[Service]
|
12
|
-
Type=notify
|
13
|
-
ExecStart=/usr/lib/moat/kv/run-all %i
|
14
|
-
|
15
|
-
User=MoaT-KV
|
16
|
-
Group=MoaT
|
17
|
-
|
18
|
-
EnvironmentFile=/usr/lib/moat/kv/env
|
19
|
-
EnvironmentFile=-/etc/moat/kv.env
|
20
|
-
|
21
|
-
TimeoutSec=300
|
22
|
-
WatchdogSec=10
|
23
|
-
|
24
|
-
Restart=always
|
25
|
-
RestartSec=10
|
systemd/moat-kv-run-any.service
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
[Unit]
|
2
|
-
Description=MoaT-KV default any-nodes runner
|
3
|
-
After=moat-kv.service
|
4
|
-
Requires=moat-kv.service
|
5
|
-
Conflicts=distkv-run-any.service
|
6
|
-
|
7
|
-
ConditionFileNotEmpty=/etc/moat/moat.cfg
|
8
|
-
|
9
|
-
[Install]
|
10
|
-
WantedBy=multi-user.target
|
11
|
-
|
12
|
-
[Service]
|
13
|
-
Type=notify
|
14
|
-
ExecStart=/usr/lib/moat/kv/run-any
|
15
|
-
|
16
|
-
User=MoaT-KV
|
17
|
-
Group=MoaT
|
18
|
-
|
19
|
-
EnvironmentFile=/usr/lib/moat/kv/env
|
20
|
-
EnvironmentFile=-/etc/moat/kv.env
|
21
|
-
|
22
|
-
TimeoutSec=300
|
23
|
-
WatchdogSec=10
|
24
|
-
|
25
|
-
Restart=always
|
26
|
-
RestartSec=10
|
systemd/moat-kv-run-any@.service
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
[Unit]
|
2
|
-
Description=MoaT-KV any-nodes runner for %i
|
3
|
-
After=moat-kv.service
|
4
|
-
Requires=moat-kv.service
|
5
|
-
|
6
|
-
ConditionFileNotEmpty=/etc/moat/moat.cfg
|
7
|
-
|
8
|
-
[Install]
|
9
|
-
WantedBy=multi-user.target
|
10
|
-
|
11
|
-
[Service]
|
12
|
-
Type=notify
|
13
|
-
ExecStart=/usr/lib/moat/kv/run-any %i
|
14
|
-
|
15
|
-
User=MoaT-KV
|
16
|
-
Group=MoaT
|
17
|
-
|
18
|
-
EnvironmentFile=/usr/lib/moat/kv/env
|
19
|
-
EnvironmentFile=-/etc/moat/kv.env
|
20
|
-
|
21
|
-
TimeoutSec=300
|
22
|
-
WatchdogSec=10
|
23
|
-
|
24
|
-
Restart=always
|
25
|
-
RestartSec=10
|
@@ -1,26 +0,0 @@
|
|
1
|
-
[Unit]
|
2
|
-
Description=MoaT-KV default single-node runner
|
3
|
-
After=moat-kv.service
|
4
|
-
Requires=moat-kv.service
|
5
|
-
Conflicts=distkv-run-single.service
|
6
|
-
|
7
|
-
ConditionFileNotEmpty=/etc/moat/moat.cfg
|
8
|
-
|
9
|
-
[Install]
|
10
|
-
WantedBy=multi-user.target
|
11
|
-
|
12
|
-
[Service]
|
13
|
-
Type=notify
|
14
|
-
ExecStart=/usr/lib/moat/kv/run-single
|
15
|
-
|
16
|
-
User=MoaT-KV
|
17
|
-
Group=MoaT
|
18
|
-
|
19
|
-
EnvironmentFile=/usr/lib/moat/kv/env
|
20
|
-
EnvironmentFile=-/etc/moat/kv.env
|
21
|
-
|
22
|
-
TimeoutSec=300
|
23
|
-
WatchdogSec=10
|
24
|
-
|
25
|
-
Restart=always
|
26
|
-
RestartSec=10
|
@@ -1,25 +0,0 @@
|
|
1
|
-
[Unit]
|
2
|
-
Description=MoaT-KV single-node runner for %i
|
3
|
-
After=moat-kv.service
|
4
|
-
Requires=moat-kv.service
|
5
|
-
|
6
|
-
ConditionFileNotEmpty=/etc/moat/moat.cfg
|
7
|
-
|
8
|
-
[Install]
|
9
|
-
WantedBy=multi-user.target
|
10
|
-
|
11
|
-
[Service]
|
12
|
-
Type=notify
|
13
|
-
ExecStart=/usr/lib/moat/kv/run-single %i
|
14
|
-
|
15
|
-
User=MoaT-KV
|
16
|
-
Group=MoaT
|
17
|
-
|
18
|
-
EnvironmentFile=/usr/lib/moat/kv/env
|
19
|
-
EnvironmentFile=-/etc/moat/kv.env
|
20
|
-
|
21
|
-
TimeoutSec=300
|
22
|
-
WatchdogSec=10
|
23
|
-
|
24
|
-
Restart=always
|
25
|
-
RestartSec=10
|
systemd/moat-kv.service
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
[Unit]
|
2
|
-
Description=MoaT-KV main server
|
3
|
-
After=mosquitto.service
|
4
|
-
Wants=mosquitto.service
|
5
|
-
Conflicts=moat-kv-recover.service
|
6
|
-
Conflicts=distkv.service
|
7
|
-
OnFailure=moat-kv-recover.service
|
8
|
-
|
9
|
-
ConditionFileNotEmpty=/etc/moat/moat.cfg
|
10
|
-
|
11
|
-
[Install]
|
12
|
-
WantedBy=multi-user.target
|
13
|
-
|
14
|
-
[Service]
|
15
|
-
Type=notify
|
16
|
-
ExecStart=/usr/lib/moat/kv/run
|
17
|
-
ExecStartPost=/usr/lib/moat/kv/success
|
18
|
-
SuccessExitStatus=42
|
19
|
-
|
20
|
-
User=MoaT-KV
|
21
|
-
Group=MoaT
|
22
|
-
|
23
|
-
EnvironmentFile=/usr/lib/moat/kv/env
|
24
|
-
EnvironmentFile=-/etc/moat/kv.env
|
25
|
-
|
26
|
-
TimeoutSec=300
|
27
|
-
WatchdogSec=10
|
systemd/postinst
DELETED
systemd/sysusers
DELETED
File without changes
|