forked from canonical/snapd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnapd.service.in
More file actions
34 lines (32 loc) · 809 Bytes
/
Copy pathsnapd.service.in
File metadata and controls
34 lines (32 loc) · 809 Bytes
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
29
30
31
32
33
34
[Unit]
Description=Snap Daemon
After=snapd.socket
After=time-set.target
After=snapd.mounts.target
Wants=time-set.target
Wants=snapd.mounts.target
Requires=snapd.socket
OnFailure=snapd.failure.service
# This is handled by snapd
# X-Snapd-Snap: do-not-start
[Service]
# Disabled because it breaks lxd
# (https://bugs.launchpad.net/snapd/+bug/1709536)
#Nice=-5
OOMScoreAdjust=-900
ExecStart=@libexecdir@/snapd/snapd
EnvironmentFile=-@SNAPD_ENVIRONMENT_FILE@
EnvironmentFile=-/var/lib/snapd/environment/snapd.conf
Restart=always
# with systemd v254+, skip going through failed state during restart
RestartMode=direct
WatchdogSec=5m
Type=notify
NotifyAccess=all
SuccessExitStatus=42
RestartPreventExitStatus=42
KillMode=process
KeyringMode=shared
FileDescriptorStoreMax=1024
[Install]
WantedBy=multi-user.target