- 起動
$ sudo motion
[0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion/motion.conf
[0:motion] [NTC] [ALL] create_path: creating directory /var/log/motion
[0:motion] [NTC] [ALL] motion_startup: Logging to file (/var/log/motion/motion.log)
- 起動状態のチェック
$ ps -def | grep motion
root 4994 2003 0 15:32 pts/0 00:00:00 sudo motion
root 4995 4994 2 15:32 pts/0 00:00:00 motion
$ sudo service motion status
● motion.service - LSB: Start Motion detection
Loaded: loaded (/etc/init.d/motion; generated)
Active: active (exited) since Sun 2021-02-28 14:50:00 JST; 43min ago
Docs: man:systemd-sysv-generator(8)
Tasks: 0 (limit: 912)
CGroup: /system.slice/motion.service
Feb 28 14:50:00 ubuntu systemd[1]: Starting LSB: Start Motion detection...
Feb 28 14:50:00 ubuntu motion[4603]: * Not starting motion daemon, disabled vi>
Feb 28 14:50:00 ubuntu systemd[1]: Started LSB: Start Motion detection.
カメラ映像へのリモートアクセス (http)
- 停止
$ sudo pkill motion
(名前に motion を含むプロセスが終了する)
または
$ pgrep motion
(motionのプロセスナンバーが表示される)
$ sudo kill [motionのプロセスナンバー]
または
$ sudo service motion stop
|