Stack Overflow

Products

Customers

Use cases

Stack Overflow Public questions and answers

Teams Private questions and answers for your team

Enterprise Private self-hosted questions and answers for your enterprise

Talent Hire technical talent

Advertising Reach developers worldwide

Log in Sign up

current community

Stack Overflow

help chat

Meta Stack Overflow

your communities

Sign up or log in to customize your list.

more stack exchange communities
company blog

By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service.

Home

Public

Stack Overflow

Tags

Users

Jobs

Teams

What’s this?

Teams

Join Private Q&A

Setup a private space for you and your coworkers to ask questions and share information.
Learn more about Teams

Join Private Q&A

respawn service Debian Jessie without inittab

Ask Question

4

0

I've installed the last stable version of Debian (Jessie) and /etc/inittab doesn't exist. I have read the new init system is called Sysv. I need to launch a service with parameter, I used to add a line in inittab like u1:23:respawn:/etc/init.d/my_service foreground

I'm trying to add this one with sysvrc-conf -p but I don't know how...

How can I do that without inittab? Thank you so much.

service debian inittab

share|improve this question

asked May 25 '15 at 11:02

MonMon
4622 silver badges44 bronze badges

add a comment |

1 Answer 1

active oldest votes

2

Found this question by google, maybe someone else finds this usefull: The new init system for Debian Jessie is systemd. The old way in Debian Wheezy was Sysv with /etc/inittab.

To create a respawn service with systemd just create a file in /etc/systemd/system/ i.e. mplayer2.service

[Unit]
Desription=mplayer with systemd, respawn
After=network.target

[Service]
ExecStart=/usr/bin/mplayer -nolirc -ao alsa -vo null -really-quiet http://stream.sunshine-live.de/hq/mp3-128/Facebook-og-audio-tag/
Restart=always

[Install]
WantedBy=multi-user.target

and activate it

systemctl enable mplayer2.service

reboot or start it manually

systemctl daemon-reload
systemctl start mplayer2.service

If you reboot or kill the process, it will be restarted automatically some seconds later.

share|improve this answer

answered Jun 11 '16 at 7:53

andpeiandpei
2,05011 gold badge1818 silver badges3535 bronze badges

its working in raspbian jessie, Thanks buddy – rajarajan2809 Sep 5 '17 at 9:42

add a comment |

Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Your Answer

Thanks for contributing an answer to Stack Overflow!

Please be sure to answer the question. Provide details and share your research!

But avoid …

Asking for help, clarification, or responding to other answers.

Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.

draft saved

draft discarded

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Post as a guest

Name

Email
Required, but never shown

Post Your Answer Discard
By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged service debian inittab or ask your own question.

asked

4 years, 1 month ago

viewed

2,625 times

active

3 years ago

Blog

Sing Me A Song of Stack Overflow: A Musical Tail Call Optimization

Featured on Meta

Custom Filters release announcement

Unicorn Meta Zoo #5: Interview with Cesar M

Work from anywhere

Senior Rails Engineer (100% Remote or Onsite in SF) MyTime Series B SaaS Startup

Source Coders No office location

$120k - $175k Remote
postgresqlruby-on-rails

dismiss this job

Backend Engineer - Marketplace Team (Golang)

Heetch No office location

Remote
microservicesgo

dismiss this job

Sr. Scala Developer; Enterprise Workflow Platform (REMOTE)

Primotus, LLC No office location

Remote
postgresqlscala

dismiss this job

Senior Full Stack Software Engineer

Auth0 No office location

Remote
reactjsnode.js

dismiss this job

Work remotely - from home or wherever you choose.
Browse remote jobs

Related

0
Debian packaging: reorder dh_installinit and dh_ucf

0
Reliable way of finding out debian release name

2
Check if service is installed

8
Unable to use service command with debian 8 (Jessie)

2
Debian systemd service starts before network is ready

2
ansible r-base 3.2 install on debian

0
inittab not restarting service after service crash in Red Hat 6.7

2
debian service vs /etc/init.d/script

0
Restarted service, getting killed in debian postinst script.

0
gcc-4.7 with Debian 8 Jessie

Hot Network Questions

Can a landlord force all residents to use the landlord's in-house debit card accounts?

Party going through airport security at separate times?

Moving millions of files to a different directory with specfic name patterns

As a supervisor, what feedback would you expect from a PhD who quits?

Can CYK Parsing algorithm generate the parsing tree in O(n^3)?

Computer name naming convention for security

Curly braces adjustment in tikz?

Why is a mixture of two normally distributed variables only bimodal if their means differ by at least two times the common standard deviation?

Deck of Cards with Shuffle and Sort functionality

Why the Cauchy Distribution is so useful?

Is "wissen" the only verb in German to have an irregular present tense?

Why did Robert F. Kennedy loathe Lyndon B. Johnson?

What is a writing material that persists forever or for a long time?

How many Jimmys can fit?

Chilling water in copper vessel

What exactly is a "murder hobo"?

what is the relation of guitar chords to actual notes in the measure

Can one block with a protection from color creature?

What are the effects of abstaining from eating a certain flavor?

Was it ever illegal to name a pig "Napoleon" in France?

Who goes first? Person disembarking bus or the bicycle?

If my class is a literal class then is it redundant to declare an object of my class as constexpr?

What was the profession 芸者 (female entertainer) called in Russia?

Is there an In-Universe reason why Thor and the Asgardians think Rocket is a rabbit?

more hot questions

Question feed

Subscribe to RSS

Question feed
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Stack Overflow

Questions

Jobs

Developer Jobs Directory

Salary Calculator

Help

Mobile

Disable Responsiveness

Products

Teams

Talent

Advertising

Enterprise

Company

About

Press

Work Here

Legal

Privacy Policy

Contact Us

Stack Exchange
Network

Technology

Life / Arts

Culture / Recreation

Science

Other

Stack Overflow

Server Fault

Super User

Web Applications

Ask Ubuntu

Webmasters

Game Development

TeX - LaTeX

Software Engineering

Unix & Linux

Ask Different (Apple)

WordPress Development

Geographic Information Systems

Electrical Engineering

Android Enthusiasts

Information Security

Database Administrators

Drupal Answers

SharePoint

User Experience

Mathematica

Salesforce

ExpressionEngine® Answers

Stack Overflow em Português

Blender

Network Engineering

Cryptography

Code Review

Magento

Software Recommendations

Signal Processing

Emacs

Raspberry Pi

Stack Overflow на русском

Code Golf

Stack Overflow en español

Ethereum

Data Science

Arduino

Bitcoin

more (31)

Photography

Science Fiction & Fantasy

Graphic Design

Movies & TV

Music: Practice & Theory

Worldbuilding

Seasoned Advice (cooking)

Home Improvement

Personal Finance & Money

Academia

Law

more (15)

English Language & Usage

Skeptics

Mi Yodeya (Judaism)

Travel

Christianity

English Language Learners

Japanese Language

Arqade (gaming)

Bicycles

Role-playing Games

Anime & Manga

Puzzling

Motor Vehicle Maintenance & Repair

more (33)

MathOverflow

Mathematics

Cross Validated (stats)

Theoretical Computer Science

Physics

Chemistry

Biology

Computer Science

Philosophy

more (11)

Meta Stack Exchange

Stack Apps

API

Data

Blog

Facebook

Twitter

LinkedIn

site design / logo © 2019 Stack Exchange Inc; user contributions licensed under cc by-sa 3.0 with attribution required. rev 2019.7.5.34235