小编Ale*_*nik的帖子

成功启动systemd后执行bash脚本?

我有/etc/systemd/system/tivalue.service 以下内容:

[Unit]
Description=Ti-Value Node
After=network.target

[Service]
Type=simple
PIDFile=/var/run/tivalue.pid

User=root
Group=root

ExecStart=/root/TiValue/tiValue --rpcuser=admin --rpcpassword=123456 --httpdendpoint=127.0.0.1:8080 --daemon
KillSignal=15
Restart=always

[Install]
WantedBy=multi-user.target
Run Code Online (Sandbox Code Playgroud)

并且 /etc/systemd/system/tivalue.curl.sh

那么,如何/etc/systemd/system/tivalue.curl.sh在成功启动后执行tivalue.service呢?

bash daemon systemd

7
推荐指数
1
解决办法
8097
查看次数

标签 统计

bash ×1

daemon ×1

systemd ×1