centos7给进程分配pid文件
时间:2022-04-03 14:14
somecode &
echo $! > /path/to/test.pid
#!/bin/bash
while true ; do
echo "hello" > /etc/null
sleep 1
done &
echo $! > /run/lib/test.pid
时间:2022-04-03 14:14
somecode &
echo $! > /path/to/test.pid
#!/bin/bash
while true ; do
echo "hello" > /etc/null
sleep 1
done &
echo $! > /run/lib/test.pid