Skip to content

Instantly share code, notes, and snippets.

View alws34's full-sized avatar
😄
Never Better

alws34 alws34

😄
Never Better
View GitHub Profile
private void btnBrowse_Click(object sender, EventArgs e)
{
OpenFileDialog fbd = new OpenFileDialog() {
ValidateNames = false,
CheckFileExists = false,
CheckPathExists = true,
FileName = "Folder Selection."
};
if (fbd.ShowDialog() == DialogResult.OK)
@alws34
alws34 / raspberry_pi_script_as_service.md
Created February 17, 2022 23:12 — forked from emxsys/raspberry_pi_script_as_service.md
How to run a python script as a service in Raspberry Pi - Raspbian Jessie

How to Run a Script as a Service in Raspberry Pi - Raspbian Jessie

By: Diego Acuña

Original Article: http://www.diegoacuna.me/how-to-run-a-script-as-a-service-in-raspberry-pi-raspbian-jessie/

A pretty common task when using this device, is to run some script (for example a python script) as a service in the operating system so it can start on boot, stop and restart using systemctl and more. In this post I'm going to explain how to set a little script as a service using Raspbian Jessie in a Raspberry Pi.

Example Python Script