File: snapd.service.in

package info (click to toggle)
snapd 2.72-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 80,412 kB
  • sloc: sh: 16,506; ansic: 16,211; python: 11,213; makefile: 1,919; exp: 190; awk: 58; xml: 22
file content (33 lines) | stat: -rw-r--r-- 781 bytes parent folder | download | duplicates (3)
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
[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

[Install]
WantedBy=multi-user.target