Skip to content

Instantly share code, notes, and snippets.

@akimichi
Created February 28, 2020 06:34
Show Gist options
  • Save akimichi/6bbda74f36062b5200e2c0907a97bb76 to your computer and use it in GitHub Desktop.
Save akimichi/6bbda74f36062b5200e2c0907a97bb76 to your computer and use it in GitHub Desktop.
raspberry pi で再起動時の自動起動するためのcrontab
#!/bin/sh
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/home/emile/.nvm/versions/node/v6.9.2/bin
MAILTO=root
HOME=/home/emile/app/denrei.node
@reboot (sleep 30s ; cd $HOME; nvm use; npm start)&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment