您现在的位置是:首页 >技术交流 >uos20 systemd systemctl service网站首页技术交流
uos20 systemd systemctl service
uos20 systemd systemctl service
/lib/systemd/system/fprintd.service
/usr/lib/systemd/system/fprintd.service
/lib/systemd/system/deepin-authenticate.service
/usr/lib/systemd/system/deepin-authenticate.service
fprintd.service
[Unit]
Description=Fingerprint Authentication Daemon
Documentation=man:fprintd(1)
[Service]
Type=dbus
BusName=net.reactivated.Fprint
ExecStart=/usr/lib/fprintd/fprintd
# Filesystem lockdown
ProtectSystem=strict
ProtectKernelTunables=true
ProtectControlGroups=true
ReadWritePaths=/var/lib/fprint
ProtectHome=true
PrivateTmp=true
# Network
PrivateNetwork=true
RestrictAddressFamilies=AF_UNIX AF_LOCAL AF_NETLINK
# Execute Mappings
MemoryDenyWriteExecute=true
# Modules
ProtectKernelModules=true
# Real-time
RestrictRealtime=true
# Privilege escalation
NoNewPrivileges=true
deepin-authenticate.service
[Unit]
Description=Deepin Authentication
[Service]
Type=dbus
BusName=com.deepin.daemon.Authenticate
ExecStart=/usr/lib/deepin-authenticate/deepin-authentication
sudo systemctl status fprintd
sudo systemctl enable fprintd.service
sudo systemctl disable fprintd.service
验证一下是否为开机启动
systemctl is-enabled fprintd
static
systemctl简单应用,开启自启动、停止、重启
systemctl简单应用,开启自启动、停止、重启
https://blog.csdn.net/qq_43666528/article/details/119762137
查看服务是否开机启动: systemctl is-enabled postfix.service
查看已启动的服务列表: systemctl list-unit-files | grep enabled
查看启动失败的服务列表: systemctl --failed
PS:使用命令 systemctl is-enabled postfix.service 得到的值可以是enable、disable或static,这里的 static 它是指对应的 Unit 文件中没有定义[Install]区域,因此无法配置为开机启动服务。
1 查看指定的服务是否开机自动启动
2 systemctl list-unit-files | grep nginx.service
3 systemctl list-unit-files nginx.service
4 systemctl is-enabled nginx.service
5 查看一个unit的依赖关系:systemctl list-dependencies nginx.service
6 优先用reload,如果无法让修改生效,才执行restart:systemctl reload-or-restart nginx.service
systemctl list-dependencies fprintd.service
fprintd.service
● ├─-.mount
● ├─dbus.socket
● ├─system.slice
● ├─var.mount
● └─sysinit.target
● ├─blk-availability.service
● ├─deepin-defender-monitornetflow.service
● ├─deepin-elf-verify.service
● ├─dev-hugepages.mount
● ├─dev-mqueue.mount
● ├─kmod-static-nodes.service
● ├─lvm2-lvmpolld.socket
● ├─lvm2-monitor.service
● ├─plymouth-read-write.service
● ├─plymouth-start.service
● ├─proc-sys-fs-binfmt_misc.automount
● ├─sys-fs-fuse-connections.mount
● ├─sys-kernel-config.mount
● ├─sys-kernel-debug.mount
● ├─systemd-ask-password-console.path
● ├─systemd-binfmt.service
● ├─systemd-hwdb-update.service
● ├─systemd-journal-flush.service
● ├─systemd-journald.service
● ├─systemd-machine-id-commit.service
● ├─systemd-modules-load.service
● ├─systemd-random-seed.service
● ├─systemd-sysctl.service
● ├─systemd-sysusers.service
● ├─systemd-timesyncd.service
● ├─systemd-tmpfiles-setup-dev.service
● ├─systemd-tmpfiles-setup.service
● ├─systemd-udev-trigger.service
● ├─systemd-udevd.service
● ├─systemd-update-utmp.service
● ├─uos-resource-manager.service
● ├─cryptsetup.target
● ├─local-fs.target
● │ ├─-.mount
● │ ├─boot.mount
● │ ├─data.mount
● │ ├─home.mount
● │ ├─opt.mount
● │ ├─recovery.mount
● │ ├─root.mount
● │ ├─systemd-fsck-root.service
● │ ├─systemd-remount-fs.service
● │ └─var.mount
● └─swap.target
● └─dev-disk-byx2duuid-b3c73226x2dab0ax2d48eex2d86acx2dc8464140f41d.swap
lines 21-51/51 (END)