Questions tagged [init]

May refer to Linux init, an abbreviation of initialization - giving variables a "starting" value, or Python's __init__ class initiation method.

May refer to :

  • Linux Init - the parent of all processes, which primary role is to create processes from a script stored in the file /etc/inittab.
  • variable init (abbreviation of initialization) - giving variables a "starting" value.
  • python magic __init__ - magic function that initializes an object.
1905 questions
0
votes
1 answer

I alloc a viewcontroller without init , but why everything works fine

I alloc a viewcontroller without init it, but everything works fine. The subviews in the viewcontroller work fine. Here is the code. self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; [self.window…
Zentopia
  • 735
  • 1
  • 8
  • 14
0
votes
2 answers

Periodic Script- Daemon-

ux and i need delete a specific file every day. then I need to do a shell script or something else with a simple command for example # rm But i need add this script to init, or convert this script in daemon TO GRANT that every day at…
MaK
  • 83
  • 1
  • 2
  • 11
0
votes
2 answers

PHP loop script on Startup wont start

I have a PHP script that I want to run forever; from starting up server until shutdown. PHP script
mandza
  • 330
  • 9
  • 24
0
votes
1 answer

Compiler error when changing deprecated void _init() to use __attribute((constructor))

I decided it would be a fun side project to do some work on tsocks, since it hasn't seen any updates in 8 years. It's hosted here on GitHub. I only made cosmetic changes to the code so far, but now I've run into a compiler error. According to…
Nomexous
  • 3
  • 1
0
votes
3 answers

Incorrect Swift 2 Initialize Class Method Syntax

I'm getting an error when trying to create a custom Class for my iOS Swift application: Super.init called before returning from initializer and Will never be executed Here is my code: class CardTableViewCell: UITableViewCell { //Vars …
wUmpage
  • 165
  • 2
  • 17
0
votes
1 answer

init program in shell script

I'v been trying to understand this code but I couldn't get the whole of it. I got that 'init' is the first startup process and that this program is used to start or end a particular mentioned service. But what does the 'cat' in the 'kill' do ?And…
0
votes
1 answer

Does jspInit() run only once?

I need to open a connection pool in a tomcat servlet. In my jsp page I overwrite jspInit() <%! public void jspInit() { . . . } %> Everything seems to be working fine, but i'm not sure if this is the correct way to initialize a connection pool.…
Emily
  • 511
  • 3
  • 11
  • 23
0
votes
0 answers

How to turn a ls loop into different variables?

Let me redo my question: OK, newb here but here is what I am trying to do: I am trying to write an init script that pulls different config files and pass them into different variables. The END result is to have an init script that can start multiple…
E.Z.
  • 139
  • 2
  • 14
0
votes
1 answer

Designated Initializer?

what is this saying as stated in apples doc: Sometimes the designated initializer of a superclass may be sufficient for the subclass, and so there is no need for the subclass to implement its own designated initializer. Other times, a class’s…
0
votes
1 answer

How to port an RPM package consist of SysV init script to systemd?

I have created an RPM package for my daemon which on installation create service init script under /etc/init.d/ Now I wanted to port this RPM package for CentOS7.1 and use systemd framework for service startup through boot as well as by admin…
Adil
  • 2,418
  • 7
  • 34
  • 38
0
votes
1 answer

Long lasting loading in init procedure

My app is loading a large file and it needs a lot of time for building up internal structures. After a while the app is terminetd by the OS beuacuse of time out. Any idea to handle it differently?
Peter71
  • 2,180
  • 4
  • 20
  • 33
0
votes
1 answer

clarify init method using subclass

Now i have had this problem clouding my mind for quite sometime and i really need someone to clarify this for me. 1) what is a unique identifier that causes the init method to return a different object other than the one you were initially trying…
0
votes
2 answers

C files for init ELF executable?

I have a few questions that I have tried to google to find out but in vain. Hence, posting it here. Thanks in advance for your time. Where are the C files available in linux(I use Ubuntu) that generate init executable? How is the init called from…
Adit Ya
  • 731
  • 1
  • 8
  • 19
0
votes
1 answer

How to create RPM package for systemd framework?

I need to create a daemon process which should be started through init.d. I have experience of creating the package and installing it with appropriate start/stop scripts managed through init.d. However recently it is being managed through systeemd.…
Adil
  • 2,418
  • 7
  • 34
  • 38
0
votes
1 answer

Objective C - subclassing classes with multiple init-methods

im searching for a convenient way of adding new arguments to multiple init-methods. its a little bit hard to discribe but my problem is the following: I have a class witch implements various init-methods. f.e. @interface Circle { CGPoint …
Tobi
  • 5,499
  • 3
  • 31
  • 47
1 2 3
99
100