简单 systemd 单元的编写
以下命令以 root 权限操作。
第一步
去 /etc/systemd/system 目录编写一个新的文件。比如说要开机自启动,命名为 your-service.service:
[Unit]
Description=Your Service
[Service]
WorkingDirectory=/path/of/the …加载更多...
以下命令以 root 权限操作。
去 /etc/systemd/system 目录编写一个新的文件。比如说要开机自启动,命名为 your-service.service:
[Unit]
Description=Your Service
[Service]
WorkingDirectory=/path/of/the …