Skip to content

Instantly share code, notes, and snippets.

@aragaer
aragaer / _service.md
Last active August 29, 2015 13:56 — forked from naholyr/_service.md

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
#!/usr/bin/python
# -*- coding: utf-8 -*-
fromWordstat = open('wordstat.txt')
fromCampaign = open('campaign.txt')
result = open('result.txt', 'w')
fromCampaignList = list(fromCampaign)
for value_list in fromWordstat: