Debian Codegraph @

init/systemd/binfmt-support.service.in

raw
1 # Copyright (C) 2013 Colin Watson.
2 #
3 # This file is part of binfmt-support.
4 #
5 # binfmt-support is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by the
7 # Free Software Foundation; either version 3 of the License, or (at your
8 # option) any later version.
9 #
10 # binfmt-support is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
13 # Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License along
16 # with binfmt-support; if not, write to the Free Software Foundation, Inc.,
17 # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
19 [Unit]
20 Description=Enable support for additional executable binary formats
21 Documentation=man:update-binfmts(8)
22 DefaultDependencies=false
23 After=local-fs.target proc-sys-fs-binfmt_misc.automount systemd-binfmt.service
24
25 [Service]
26 Type=oneshot
27 RemainAfterExit=yes
28 ExecStart=@sbindir@/update-binfmts --enable
29 ExecStop=@sbindir@/update-binfmts --disable
30 Restart=no
31 ProtectSystem=full
32 PrivateNetwork=true
33 ProtectHostname=true
34 ProtectClock=true
35 ProtectKernelLogs=true
36 LockPersonality=true
37 RestrictRealtime=true
38
39 [Install]
40 WantedBy=multi-user.target