ralyodio/node-startup

Description: Startup script for Linux-based systems for running node app when rebooting using an /etc/init.d script.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 3 hours ago
Added to GitGenius on June 12th, 2026
Created on October 12th, 2012
Open Issues & Pull Requests: 10 (+0)
Number of forks: 163
Total Stargazers: 776 (+0)
Total Subscribers: 29 (+0)

Issue Activity (beta)

Open issues: 0
New in 7 days: 0
Closed in 7 days: 0
Avg open age: N/A days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

The node-startup repository provides a Linux init.d startup script designed to automatically launch Node.js applications when a system reboots. Written in Shell, the project addresses a common operational challenge where Node.js applications fail to restart after unexpected server reboots, particularly relevant for developers running applications on virtual private servers or shared hosting environments.

The core functionality centers on a configurable shell script named node-app that integrates with the /etc/init.d directory structure used by Linux systems for service management. The script enables four primary actions: start, stop, restart, and status. These actions allow administrators to control the Node.js application lifecycle through standard Linux service commands, with the critical feature being automatic startup on system reboot without manual intervention.

Configuration flexibility is a key aspect of the repository. The node-app script declares multiple Node.js-specific variables including NODE_ENV for environment specification, PORT for the listening port, and CONFIG_DIR for node-config integration. Execution configuration variables allow customization of the Node.js executable location, application directory path, application filename, PID file location, log file location, and application display name. This extensive configuration system accommodates diverse deployment scenarios without requiring modifications to the core script logic.

The repository includes a force action option that handles edge cases where PID files exist but the application has stopped unexpectedly. When invoked with the --force flag, the start action removes stale PID files before launching the application, the stop action cleans up orphaned PID files, and the restart action handles either scenario appropriately. This robustness prevents common startup failures in production environments.

Installation involves cloning the repository, editing the node-app script with environment-specific settings, copying it to /etc/init.d, and registering it with the system's runlevel configuration using either update-rc.d for Debian-based systems or chkconfig for Red Hat-based systems. The README provides explicit testing commands to verify functionality before relying on automatic startup.

According to GitGenius classification data, the repository is categorized across multiple domains including Node.js, project scaffolding, starter templates, express setup, API boilerplate, development environments, npm scripts, dotenv configuration, code structure, and backend initialization. This broad classification reflects the repository's utility as a foundational tool for Node.js deployment infrastructure.

The project documentation indicates the original author is seeking a maintainer, suggesting the repository represents a stable, mature solution that has served the Node.js community but requires ongoing stewardship. Testing confirms compatibility with Debian 6.0, though the script targets broader Linux compatibility across systems using /etc/init.d conventions, including Red Hat, CentOS, Gentoo, and Ubuntu distributions. The MIT License permits both commercial and personal use with minimal restrictions, making it suitable for integration into various deployment pipelines and infrastructure automation workflows.

node-startup
by
ralyodioralyodio/node-startup

Repository Details

Fetching additional details & charts...