@@ -293,45 +293,21 @@ <h2><a name="Basic_Setup"></a> Basic Setup </h2>
293293 section can be updated with their distribution.
294294 < p > </ p >
295295 Motion can be set up to run as a service which means that it will start automatically whenever the computer
296- is started. When Motion is installed from apt or from a deb file, default files are installed which can be
297- easily modified so that Motion starts as a service. If Motion is built directly from source and installed,
298- then these additional files will need to be copied, modified and installed manually from the source and packaging
299- repositories.
300- < p > </ p >
301- When setting up Motion to run as a service, it should be done only after all the other configuration
296+ is started. When setting up Motion to run as a service, it should be done only after all the other configuration
302297 has been completed. It is much easier to edit and revise the parameters when Motion is just running
303- in a terminal rather than as a service.
298+ in a terminal rather than as a service. Motion now uses the systemctl and when running as a service,
299+ the option < a href ="#daemon " > daemon</ a > must be set as < code > off</ code >
304300 < p > </ p >
305- To set up to run as a service, first edit the file < code > /etc/default/motion</ code > and revise the line
306- to indicate < code > start_motion_daemon=yes</ code > .
307- Next, edit the main motion.conf file and specify < a href ="#daemon " > daemon</ a > as < code > on</ code >
308- When the computer is restarted, Motion should now be running. The following commands control
309- the Motion service.
301+ The following commands control the Motion service.
310302 < ul >
311- < li > Start the Motion service< code > sudo service motion start</ code > </ li >
312- < li > Stop the Motion service< code > sudo service motion stop</ code > </ li >
313- < li > Restart the Motion service< code > sudo service motion restart</ code > </ li >
303+ < li > Start the Motion service< code > sudo systemctl start motion</ code > </ li >
304+ < li > Stop the Motion service< code > sudo systemctl stop motion</ code > </ li >
314305 </ ul >
315306 < p > </ p >
316307 When running as a service, Motion runs as the user < code > motion</ code > and this user is automatically
317308 added to the user group of < code > video</ code > . By only be included in this user group, when Motion is
318309 run, it will only have limited permissions. It is NOT recommended that this user get added to the
319310 < code > sudo</ code > group. Instead, only add this user to groups that are specifically required.
320- < p > </ p >
321- On newer distributions, the above method of running a service is deprecated (but still functional) in
322- favor of the systemctl method. Since this is not available on all the distributions which Motion is
323- deployed, the above method is retained. Once systemctl is available on all the deployed versions, Motion
324- will transition to systemctl as the service method. For users that wish to systemctl rather than the above
325- method, a < code > motion.system</ code > file is included in the source code.
326- < p > </ p >
327- For users that are building and installing from source without a deb file, the file < code > motion.init-Debian</ code >
328- will need to be copied from the examples directory or from the source directory. It will need to be renamed and put
329- into < code > /etc/init.d/motion</ code > . Ensure that it is also marked as executable and has root ownership. Next,
330- create the file < code > /etc/default/motion</ code > with the entry as specified above. Finally, create the
331- < code > motion</ code > user as needed. The scripts that create the groups and users when using
332- the deb packages can be used as a model. These scripts can be reviewed in the motion-packaging repo, within the
333- debian directory, motion.postinst (e.g. < code > motion-packaging/debian/motion.postinst</ code >
334-
335311 < p > </ p >
336312 < p > </ p >
337313 </ ul >
@@ -2197,7 +2173,8 @@ <h3><a name="daemon"></a> daemon </h3>
21972173 < li > Default: off</ li >
21982174 </ ul >
21992175 < p > </ p >
2200- When Motion is started, immediately go to daemon mode and release the terminal.
2176+ When Motion is started, immediately go to daemon mode and release the terminal. Set
2177+ the option to off when running Motion as a service.
22012178 < p > </ p >
22022179
22032180 < h3 > < a name ="setup_mode "> </ a > setup_mode </ h3 >
@@ -3244,7 +3221,7 @@ <h3><a name="netcam_high_url"></a> netcam_high_url </h3>
32443221 as provided from the camera and the privacy mask will not be applied.
32453222 < p > </ p >
32463223
3247- < h3 > < a name ="netcam_high_params "> </ a > netcam_params </ h3 >
3224+ < h3 > < a name ="netcam_high_params "> </ a > netcam_high_params </ h3 >
32483225 < p > </ p >
32493226 < ul >
32503227 < li > Type: String</ li >
0 commit comments