Welcome to mirror list, hosted at ThFree Co, Russian Federation.

remote-exec « bin « rootfs « hakchi « mod_hakchi « mods - github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 32977e64053f95ee8bba61941b9fb801e54402fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
mpc_flag="/var/startmpc.flag"
exec_flag="/var/exec.flag"
while [ true ]; do
  if [ -f "$mpc_flag" ]; then
    echo Restart!
    rm "$mpc_flag"
    /etc/init.d/S81clover-mcp start
  fi
  if [ -f "$exec_flag" ]; then
    cmd="$(cat "$exec_flag")"
    rm "$exec_flag"
    $cmd
  fi
  usleep 200000
done