Feature 57 (config and provisioning): modules declare config and provisions, their files rendered from templates; synced with main (issues of feature 57, 874)
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
[Unit]
|
||||
Description=Transparent huge pages as the mesh sets them on this machine
|
||||
# Module kernel, novox/hq issue 746. Starting this unit sets the mode from the setting
|
||||
# transparent-huge-pages; reloading it (the setting changed) sets the new mode; stopping it gives back the
|
||||
# mode the machine had before. It runs early in boot, before the services that fill the page cache.
|
||||
DefaultDependencies=no
|
||||
After=local-fs.target
|
||||
Before=sysinit.target shutdown.target
|
||||
Conflicts=shutdown.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=${dir:state}/huge-pages apply
|
||||
ExecReload=${dir:state}/huge-pages apply
|
||||
ExecStop=${dir:state}/huge-pages restore
|
||||
# It writes one file under /sys and its own state, and asks the journal daemon to rotate over its socket.
|
||||
ProtectSystem=strict
|
||||
ReadWritePaths=${dir:state}
|
||||
ProtectHome=yes
|
||||
PrivateNetwork=yes
|
||||
NoNewPrivileges=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
||||
Reference in New Issue
Block a user