model/persistence.js
function() {
        if (this._isShuttingDown) {
            return;
        }
        this._isShuttingDown = true;

        // Restart but wait a bit to log things.
        // -R - restart
        // -C - shutdown message
        // -T 0 - shutdown now
        // -F - don't wait for anything to shut down gracefully
        var winCmd = 'shutdown -R -T 0 -F -C "ampm restart"';
        var macCmd = 'shutdown -r now';
        var cmd = process.platform === 'win32' ? winCmd : macCmd;
        setTimeout(child_process.exec(cmd), 3000);
    }
function() {
        if (this._isShuttingDown) {
            return;
        }
        this._isShuttingDown = true;

        // Restart but wait a bit to log things.
        // -R - restart
        // -C - shutdown message
        // -T 0 - shutdown now
        // -F - don't wait for anything to shut down gracefully
        var winCmd = 'shutdown -R -T 0 -F -C "ampm restart"';
        var macCmd = 'shutdown -r now';
        var cmd = process.platform === 'win32' ? winCmd : macCmd;
        setTimeout(child_process.exec(cmd), 3000);
    }
function ( ) { if ( this . _isShuttingDown ) { return ; } this . _isShuttingDown = true ; // Restart but wait a bit to log things. // -R - restart // -C - shutdown message // -T 0 - shutdown now // -F - don't wait for anything to shut down gracefully var winCmd = 'shutdown -R -T 0 -F -C "ampm restart"' ; var macCmd = 'shutdown -r now' ; var cmd = process . platform === 'win32' ? winCmd : macCmd ; setTimeout ( child_process . exec ( cmd ) , 3000 ) ; }
Reboot the whole PC.
Reboot the whole PC .