Home >

service restart

Restart a service on the SafeNet appliance. Services require restarting if their configurations have changed. For example, after changing any network settings using the network commands, you should restart the network service to ensure the new settings take affect. Also, after regenerating the server certificate with the sysconf regencert command, you must restart the NTLS service so that the new certificate is used for the NTLA. For a list of services that can be restarted, use the service list command.

Restarting a service isn't always the same as doing a service stop followed by a service start. If you restart the network service while connected to the SafeNet appliance via the network (ssh), you will not lose your connection (assuming no changes were made that would cause a connection loss). However, if you were to stop the network service, you would immediately lose your connection, and you would need to log in via the local console to start the service again. The same applies for the sshd service.

Note:  It can sometimes take slightly more than a minute for NTLS to fully restart, depending on where the system was in its normal cycle of operation when you initiated the restart. This is relatively rare, with the usual NTLS restart time being on the order of ten seconds. We mention it here in case you notice an entry like vtsd: Error: Server Listening Port could not Bind in the logs. One or more occurrences can be normal behavior unless there is no recovery and no successful restart.

Syntax

service restart <service_name> [-force]

Parameter Shortcut Description
<service_name>  

Specifies the service to restart.

Valid values: network, ntls, ntp, snmp, ssh, stc, sysstat, syslog

-force -f Force the action without prompting.

Example

lunash:>service restart syslog
 
Shutting down kernel logger:                               [  OK  ]
Shutting down system logger:                               [  OK  ]
Starting system logger:                                    [  OK  ]
Starting kernel logger:                                    [  OK  ]
 
Command Result : 0 (Success)
 
lunash:>service restart ntls
 
Checking for connected clients before stopping NTLS service:
WARNING !! There are 1 client(s) connected to this SafeNet Network HSM
appliance.  It is recommended that you disconnect all clients
before stopping or restarting the NTLS service.
If you are sure that you wish to proceed, then type 'proceed', otherwise type 'quit'
> proceed
Proceeding...
Stopping ntls:                                             [  OK  ]
Starting ntls:                                             [  OK  ]
Command Result : 0 (Success)
 
lunash:>service restart ssh
 
Stopping sshd:                                             [  OK  ]
Starting sshd:                                             [  OK  ]
Command Result : 0 (Success)
 
[myLuna] lunash:>service restart network
 
Shutting down interface eth0:                              [  OK  ]
Shutting down interface eth1:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:                                [  OK  ]
Bringing up interface eth1:                                [  OK  ]
 
Command Result : 0 (Success)
 
lunash:>service restart ntp
 
Shutting down ntp:                                         [  OK  ]
Starting ntp:                                              [  OK  ]
Command Result : 0 (Success)
 
lunash:>service restart snmp
Stopping snmpd:                                            [  OK  ]
Starting snmpd:                                            [  OK  ]
Command Result : 0 (Success)