request extension-service restart-daemonize-app
Syntax
request extension-service restart-daemonize-app application-name
Description
Restart a daemonized application running on a Junos device.
A daemonized application runs as a process in the background. An application configured to run as a daemonized process is automatically triggered upon commit. Restarting the application can assist you with debugging and troubleshooting. You can restart a daemonized jet application executing under both the Python interpreter and cscript framework.
Options
| application-name | Name of application to be restarted. |
Required Privilege Level
maintenance
Sample Output
user@host> show system extensions | display set set system extensions extension-service application file demo.py arguments "--host 10.1.1.1 --port 5900" set system extensions extension-service application file demo.py daemonize set system extensions extension-service application file demo.py interpreter python3 set system extensions extension-service application file demo.py username root user@host> ps -aux | grep demo root 27006 93.5 0.0 13084 6884 ? Rs 14:28 1:16 /usr/bin/python3 /var/db/scripts/jet/demo.py --host 10.1.1.1 --port 5900 root 29547 0.0 0.0 4704 2788 pts/0 S+ 14:29 0:00 grep demo user@host> request extension-service restart-daemonize-app demo.py Extension-service application 'demo' with pid: 27006 exited with return: -1 Extension-service application restarted successfully
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Release Information
Command introduced in Junos OS and Junos OS Evolved Release 23.2R1.