williamconley wrote:or add it to your crontab -e ... perhaps with a "sleep 10;" in front of it to be sure everything else has loaded.
instead of a specific time, use @reboot
eg: not "* * * * * sleep 10; /path/to/command" but "@reboot sleep 10; /path/to/command"
Here is the logs file when I restart the server or vicidial service
-----------------------------------------------------------------------------
2020-06-26T21:39:33.528388+05:30 vicibox8 kernel: [65938.386460] wanpipe1: Shutting Down!
2020-06-26T21:39:33.528389+05:30 vicibox8 kernel: [65938.387852] wanpipe1: Unregister Wanpipe device from Zaptel!
2020-06-26T21:39:33.528390+05:30 vicibox8 kernel: [65938.387857] dahdi: disable_span: span 1
2020-06-26T21:39:33.528391+05:30 vicibox8 kernel: [65938.388599] wanpipe1: unregistering 'w1g1'
2020-06-26T21:39:33.528523+05:30 vicibox8 systemd-udevd[412]: Network interface NamePolicy= disabled by default.
2020-06-26T21:39:33.528711+05:30 vicibox8 irqd[721]: w1g1 ppp <pointopoint,noarp> group 0
2020-06-26T21:39:33.539380+05:30 vicibox8 'dahdi_span_config'[16735]: offline: /devices/pci0000:00/0000:00:1c.0/0000:01:00.0/0000:02:04.0/wanpipe1/wanpipe_devices:wanpipe1/span-1
2020-06-26T21:39:33.543547+05:30 vicibox8 'dahdi_handle_device'[16743]: remove: /devices/pci0000:00/0000:00:1c.0/0000:01:00.0/0000:02:04.0/wanpipe1/wanpipe_devices:wanpipe1
2020-06-26T21:39:33.544759+05:30 vicibox8 'dahdi_handle_device'[16745]: D: Running '/usr/share/dahdi/handle_device.d/10-span-types'
2020-06-26T21:39:33.545713+05:30 vicibox8 'dahdi_handle_device'[16745]: D: Running '/usr/share/dahdi/handle_device.d/20-span-assignments'
2020-06-26T21:39:33.555077+05:30 vicibox8 kernel: [65938.411328] wanpipe1: E1 Front End unconfigation!
2020-06-26T21:39:33.555090+05:30 vicibox8 kernel: [65938.411358] wanpipe1: AFT communications disabled! (Dev Cnt: 1 Cause: Device Down)
2020-06-26T21:39:33.555091+05:30 vicibox8 kernel: [65938.411368] wanpipe1: Unregisterd HWEC
2020-06-26T21:39:33.555092+05:30 vicibox8 kernel: [65938.411369] wanpipe1: Unregister interface from wanec1 (usage 1)!
2020-06-26T21:39:33.555093+05:30 vicibox8 kernel: [65938.411369] wanpipe1: Releasing EC device (force)!
2020-06-26T21:39:33.583036+05:30 vicibox8 kernel: [65938.442126] wanpipe1: Set Echo Canceller chip reset.
2020-06-26T21:39:33.583042+05:30 vicibox8 kernel: [65938.442142] wanpipe1: AFT communications disabled! (Dev Cnt: 1 Cause: Device Down)
2020-06-26T21:39:33.583044+05:30 vicibox8 kernel: [65938.442175] wanpipe1: TASKQ Not Running
2020-06-26T21:39:33.583045+05:30 vicibox8 kernel: [65938.442176] wanpipe1: Global Chip Shutdown Usage=1, Used_type_cnt=1
2020-06-26T21:39:33.583045+05:30 vicibox8 kernel: [65938.442177] wanpipe1: Global E1 Front End unconfigation!
2020-06-26T21:39:33.587049+05:30 vicibox8 kernel: [65938.444254] wanpipe1: Master shutting down
2020-06-26T21:39:33.591173+05:30 vicibox8 kernel: [65938.449877] af_wanpipe: Unregistering Wanpipe API Socket Module
2020-06-26T21:39:33.635146+05:30 vicibox8 kernel: [65938.491430] NET: Unregistered protocol family 25
2020-06-26T21:39:33.659130+05:30 vicibox8 kernel: [65938.515886] wanec_remove_dev: Unregistering Wanpipe ECDEV Device!
2020-06-26T21:39:33.659151+05:30 vicibox8 kernel: [65938.516091] WANEC Layer: Unloaded
2020-06-26T21:39:33.695119+05:30 vicibox8 kernel: [65938.554638] WANPIPE: TDM Codecs unloaded.
2020-06-26T21:39:33.699068+05:30 vicibox8 kernel: [65938.556121]
2020-06-26T21:39:33.699093+05:30 vicibox8 kernel: [65938.556125] wanpipe: WANPIPE Modules Unloaded.
2020-06-26T21:39:33.731590+05:30 vicibox8 kernel: [65938.588457] dahdi: Telephony Interface Unloaded
2020-06-26T21:39:33.823076+05:30 vicibox8 kernel: [65938.679579] usbcore: deregistering interface driver sdlausb
2020-06-26T21:39:33.852474+05:30 vicibox8 vicidial[16640]: Unloading wanrouter... done.
2020-06-26T21:39:33.859744+05:30 vicibox8 vicidial[16640]: DAHDI and modules not loaded, skipping.
2020-06-26T21:39:33.860296+05:30 vicibox8 vicidial[16640]: ViciDial Telephony server stopped. Log at /var/log/vicidial.log
2020-06-26T21:39:33.860727+05:30 vicibox8 vicidial[16640]: ..done
2020-06-26T21:39:33.862348+05:30 vicibox8 systemd[1]: Stopped LSB: ViciDial Telephony Server.
2020-06-26T21:39:33.907407+05:30 vicibox8 systemd[1]: Starting LSB: ViciDial Telephony Server...
2020-06-26T21:39:33.955930+05:30 vicibox8 vicidial[16811]: Starting ViciDial Telephony Server...
2020-06-26T21:39:33.969105+05:30 vicibox8 kernel: [65938.828726] dahdi: Version: 2.11.1
2020-06-26T21:39:33.969123+05:30 vicibox8 kernel: [65938.828867] dahdi: Telephony Interface Registered on major 196
2020-06-26T21:39:33.972236+05:30 vicibox8 vicidial[16811]: Loading dahdi_dummy module... failed.
2020-06-26T21:39:33.975110+05:30 vicibox8 vicidial[16811]: Fallback to dahdi module... done.
2020-06-26T21:39:38.978444+05:30 vicibox8 vicidial[16811]: Initializing DAHDI Hardware... done.
2020-06-26T21:39:39.014261+05:30 vicibox8 vicidial[16811]: Resetting vars and rolling logs... done.
2020-06-26T21:39:44.077938+05:30 vicibox8 vicidial[16811]: Starting Asterisk... PID 16875, done.
2020-06-26T21:39:44.078522+05:30 vicibox8 vicidial[16811]: Giving asterisk -1 process priority... done.
2020-06-26T21:39:44.082436+05:30 vicibox8 vicidial[16811]: Starting ip_relay with OS specific version... done.
2020-06-26T21:39:44.082581+05:30 vicibox8 vicidial[16811]: ViciDial Telephony Server Started. Log at /var/log/vicidial.log
2020-06-26T21:39:44.082647+05:30 vicibox8 vicidial[16811]: ..done
2020-06-26T21:39:44.082714+05:30 vicibox8 systemd[1]: Started LSB: ViciDial Telephony Server.
---------------------------------------------------------------------------------------------------------------